2013年11月8日金曜日

RailsのdeviseでYOUR_ORMが必要

User does not respond to 'devise' method.
This usually means you haven't loaded your ORM file or it's being loaded too late.
To fix it, be sure to require 'devise/orm/YOUR_ORM' inside 'config/initializers/devise.rb' or
before your application definition in 'config/application.rb' (RuntimeError)
なので下記のファイルに追加 vi config/initializers/devise.rb
require 'devise/orm/active_record'

0 件のコメント: