Forgot Password with RESTFul_Authentication plugin?

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:inforgot_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?

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 G. 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:inforgot_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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs