Forum: Ruby on Rails insecure: can't modify hash

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
419b88e6a0fca968171b5fabce59d385?d=identicon&s=25 Gregory Mirz (nguma)
on 2008-12-15 20:31
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 :!
This topic is locked and can not be replied to.