Created
June 1, 2011 17:52
-
-
Save cacois/1002869 to your computer and use it in GitHub Desktop.
rails_admin_interfaces active-admin login error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NoMethodError in ActiveAdmin::Devise::SessionsController#create | |
undefined method `encrypted_password=' for #<AdminUser:0x39a0c20> | |
Rails.root: c:/Code/rails_admin_interfaces | |
Application Trace | Framework Trace | Full Trace | |
Request | |
Parameters: | |
{"utf8"=>"✓", | |
"authenticity_token"=>"XvnNc1JO28D5qvd8B1W5RI/9TX31Jewq1yAeJ0W763I=", | |
"admin_user"=>{"email"=>"admin@example.com", | |
"password"=>"[FILTERED]", | |
"remember_me"=>"1"}, | |
"commit"=>"Login"} | |
Show session dump | |
Show env dump | |
Response | |
Headers: | |
None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cacois@CACOIS-MBP /c/Code/rails_admin_interfaces (active-admin) | |
$ gem list | |
*** LOCAL GEMS *** | |
abstract (1.0.0) | |
actionmailer (3.0.7, 3.0.3) | |
actionpack (3.0.7, 3.0.3) | |
activeadmin (0.2.2) | |
activemodel (3.0.7, 3.0.3) | |
activerecord (3.0.7, 3.0.3) | |
activeresource (3.0.7, 3.0.3) | |
activesupport (3.0.7, 3.0.3) | |
arel (2.0.10, 2.0.6) | |
bcrypt-ruby (2.1.4 x86-mingw32) | |
builder (2.1.2) | |
bundler (1.0.7) | |
devise (1.3.4) | |
erubis (2.6.6) | |
fastercsv (1.5.4) | |
ffi (1.0.4 x86-mingw32) | |
formtastic (1.2.3) | |
has_scope (0.5.0) | |
i18n (0.5.0) | |
inherited_resources (1.2.2) | |
inherited_views (0.0.2) | |
mail (2.2.19, 2.2.13) | |
meta_search (1.0.5) | |
mime-types (1.16) | |
minitest (1.6.0) | |
orm_adapter (0.0.5) | |
polyglot (0.3.1) | |
rack (1.2.3, 1.2.1) | |
rack-mount (0.6.14, 0.6.13) | |
rack-test (0.5.7, 0.5.6) | |
rails (3.0.7, 3.0.3) | |
railties (3.0.7, 3.0.3) | |
rake (0.8.7) | |
rdoc (2.5.8) | |
render_inheritable (1.0.0) | |
responders (0.6.4) | |
sass (3.1.1) | |
sqlite3 (1.3.3 x86-mingw32) | |
sqlite3-ruby (1.3.2 x86-mingw32) | |
thor (0.14.6) | |
treetop (1.4.9) | |
typus (3.0.10) | |
tzinfo (0.3.27, 0.3.23) | |
warden (1.0.4) | |
will_paginate (3.0.pre2) | |
wirble (0.1.3) |
irb(main):001:0> puts AdminUser.inspect
AdminUser(id: integer, first_name: string, last_name: string, role: string, emai
l: string, status: boolean, token: string, salt: string, crypted_password: strin
g, preferences: string, created_at: datetime, updated_at: datetime)
=> nil
Looks like your database is still in Typus mode -- rake db:drop db:create db:migrate
should fix it right up.
Excellent! Thanks, not sure why I didn't catch that myself.
Sure thing!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Odd. 'encrypted_password' is a string field on the AdminUser model. If you wouldn't mind, what happens if you open rails console and do a "puts AdminUser.inspect"?