I'm getting the above error with Rails 3.1.1 and Ruby 1.9.2. I've spent the last hour looking and the main things I've found were:
clear_helpers
in ApplicationController can cause the helpers to not load. My code isn't using that and I don't believe the gems I've installed are either.Missing
devise_for
in routes.rb. I havedevise_for :users
Missing 'database_authenticatable' in my Users model. I have in my users.rb :
devise :database_authenticatable, :registerable, :recoverable, :rememberable, :trackable, :validatable
My behavior matches exactly what's described in this email thread except
signed_in? :user
doesn't work for me either. However,Devise.mappings
does show the user mapping.
Any ideas on what could be wrong? Even a hack for current_user would help me greatly as I have to get some functionality running ASAP.