# Forgot Password with RESTFul\_Authentication plugin?

**URL:** <https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744>\
**Category:** Rails\
**Created:** [December 11, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744 "2007-12-11T17:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [December 11, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744/1 "2007-12-11T17:59:48Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![softf5ajivanet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/9f8e36/32.png) [@softf5ajivanet](https://www.ruby-forum.com/u/softf5ajivanet)\
**Post date:** [December 11, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/forgot-password-with-restful-authentication-plugin/122744/2 "2007-12-11T19:30:35Z")

</div>

Worked it out,

switched my:

@user.update

to

@user.save

works fine under the new plugin,

[http://railsforum.com/viewtopic.php?id=3908](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: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?
