# It seems to be a restful\_authentication bug (was Re: \[Rails\] Re: named route new\_session not working

**URL:** <https://www.ruby-forum.com/t/it-seems-to-be-a-restful-authentication-bug-was-re-rails-re-named-route-new-session-not-working/126290>\
**Category:** Rails\
**Created:** [January 17, 2008, 1:25am UTC](https://www.ruby-forum.com/t/it-seems-to-be-a-restful-authentication-bug-was-re-rails-re-named-route-new-session-not-working/126290 "2008-01-17T01:25:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rykkers](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@rykkers](https://www.ruby-forum.com/u/rykkers)\
**Post date:** [January 17, 2008, 1:25am UTC](https://www.ruby-forum.com/t/it-seems-to-be-a-restful-authentication-bug-was-re-rails-re-named-route-new-session-not-working/126290/1 "2008-01-17T01:25:30Z")

</div>

On 1/16/08, Jimmy P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> redirect_to new_session # <---- NOTICE
> 
> ```
> 
> #Admin::CategoriesController:0x18e93dc  
> end
> 
> rake routes:
> 
> new\_session GET /session/new {:action=\>“new”,  
> :controller=\>“sessions”}
> 
> Seems like it should work. Am I missing something?

Ahh, information.

Okay, this definitely looks like a bug in the restful\_authentication  
plugin.  
Look at the first comment here:  
[http://agilewebdevelopment.com/plugins/restful\_authentication](http://agilewebdevelopment.com/plugins/restful_authentication)

This seems to have been introduced lately, the last time I used  
restful\_authentication it generated  
redirect\_to :controller =\> ‘/session’, :action =\> ‘new’

## I don’t know if Rick has an official bug tracking site for his plugins (you’d think he’d be using Lighthouse ) so I’ve changed the subject in hopes he might be more likely to read this.

Rick DeNatale

My blog on Ruby  
[http://talklikeaduck.denhaven2.com/](http://talklikeaduck.denhaven2.com/)
