# Restore password without session initialized

**URL:** <https://www.ruby-forum.com/t/restore-password-without-session-initialized/152675>\
**Category:** Rails\
**Created:** [November 6, 2008, 10:27am UTC](https://www.ruby-forum.com/t/restore-password-without-session-initialized/152675 "2008-11-06T10:27:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![admon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e9a140/32.png) [@admon](https://www.ruby-forum.com/u/admon)\
**Post date:** [November 6, 2008, 10:27am UTC](https://www.ruby-forum.com/t/restore-password-without-session-initialized/152675/1 "2008-11-06T10:27:59Z")

</div>

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.
