A weird problem occurs (only on the prod server, not locally), when i
try to register a new user with restful_authentication.

Once in a while, i get the following error when trying to sign up as a
new user:

Insecure: can't modify hash

usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:309:in
`delete'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:309:in
`write_attribute_without_dirty'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:139:in
`write_attribute'
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211:in
`deleted_at='
app/models/user.rb:113:in `make_activation_code'
app/controllers/users_controller.rb:30:in `create'
/usr/bin/mongrel_rails:16:in `load'
/usr/bin/mongrel_rails:16

Im really clueless on what's causing it. Even more strange is that it
doesn't right after a fresh deploy, and it doesn't happen locally. My
first reaction was to run rake db:sessions:clear in case there was some
unwanted persistence in the sessions, but it doesn't seem to come from
that...

If any knows about that error and could help... thanks :!
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to