Hi, migrating over to Rails 2.0.1 and stuck on this final bit. I''ve replaced the acts_as_authenticated plugin with the RestFul_Authentication plugin, curing some session errors, added Will_Paginate to allow me to paginate pages; all going good there. However my old forgot_password code throw''s up when called... NoMethodError in AccountController#forgot_password private method `update'' called for #<User:0x34d0668> /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/attribute_methods.rb:205:in `method_missing'' app/controllers/account_controller.rb:80:in `forgot_password'' {"commit"=>"Reset Password", "email"=>"test"} I know this is due to the old acts_as_authenticated plugin, but is there any way of doing this with the new RESTFul_Authentication plugin ? Any ideas? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
John Griffiths
2007-Dec-11 18:30 UTC
Re: Forgot Password with RESTFul_Authentication plugin?
Worked it out, switched my: @user.update to @user.save works fine under the new plugin, http://railsforum.com/viewtopic.php?id=3908 all the best, John. John Griffiths wrote:> Hi, migrating over to Rails 2.0.1 and stuck on this final bit. > > I''ve replaced the acts_as_authenticated plugin with the > RestFul_Authentication plugin, curing some session errors, added > Will_Paginate to allow me to paginate pages; all going good there. > > However my old forgot_password code throw''s up when called... > > NoMethodError in AccountController#forgot_password > private method `update'' called for #<User:0x34d0668> > > /usr/local/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/attribute_methods.rb:205:in > `method_missing'' > app/controllers/account_controller.rb:80:in `forgot_password'' > > {"commit"=>"Reset Password", > "email"=>"test"} > > > I know this is due to the old acts_as_authenticated plugin, but is there > any way of doing this with the new RESTFul_Authentication plugin ? > > Any ideas?-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---