> You can now follow the sequence:
>
>>> record = User.new({ :login => 'quire', :email => '[email protected]',
>>> :password => 'enquire', :password_confirmation => 'enquire' })
> => #<User id: nil, login: "quire", name: "", email:
> "[email protected]", crypted_password: nil, salt: nil, created_at:
> nil, updated_at: nil, remember_token: nil, remember_token_expires_at:
> nil, activation_code: nil, activated_at: nil, state: "passive",
> deleted_at: nil>
>>> record.save
> => true
>>> record
> => #<User id: nil, login: "quire", name: "", email:
> "[email protected]", crypted_password: nil, salt: nil, created_at:
> nil, updated_at: nil, remember_token: nil, remember_token_expires_at:
> nil, activation_code: "8508423584b5c775a60939f9d1966653cd8ea493",
> activated_at: nil, state: "pending", deleted_at: nil>
Actually, you forgot to reload the model, because THAT caused the
problem...
And it seems that we don't use the same version of the
restful_authentication plugin, because mine doesn't contain a file
called aasm_roles.rb; take a look at the attached screen...
Attachments:
http://www.ruby-forum.com/attachment/3603/restful_authentication.jpg
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---