Forum: Ruby on Rails Restore password without session initialized

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.
98ee355266e55690050a20fd76ee8c67?d=identicon&s=25 Jose Antonio Parra (pikislabis)
on 2008-11-06 10:27
 Hi,

 Y was triying to implement in my application the fact of remenber or
generate a new password. When you try to loggin in there, if the
password is no correct, the application shows the link "Remenber
password", having the route /users/remind. The problem is when a try to
go to this link, appear an error like this:

 undefined local variable or method `new_session_path' for
#<UsersController:0x6a8cedc>

lib/authenticated_system.rb:68:in `access_denied'
lib/authenticated_system.rb:65:in `access_denied'
lib/role_requirement_system.rb:116:in `access_denied'
lib/role_requirement_system.rb:121:in `check_roles'

 I alredy have installed the plugin Authenticated System. The actions I
have taken:

 before_filter :authorize, :except => [:login, :remind] in
application.rb

 The method authorize look if a session is open. If not, redirects to
method login.

 I want to know if I'm doing anything wrong. Thaks.

 PS: Sorry about my english. It's so poor.
This topic is locked and can not be replied to.