Displaying 2 results from an estimated 2 matches for "make_activation_code".
2008 Jun 29
3
Working around/with Restful Authentication
I''m using Restful Authentication, and the code to create a user is
pretty straight forward - there is a before_save action and a
before_create action:
before_save :encrypt_password
before_create :make_activation_code
But for some reason when I try to create a user programmatically in
the controller like this:
User.new(:email => ''user-n8tE+Mx9DRM@public.gmane.org'', :password =>
''123456'', :password_confirmation => ''123456'')
Nothing happens. I get a...
2008 Dec 15
0
insecure: can't modify hash
...: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 lo...