ok, i see that in the plugin a line was changed in the
authenticated_system.rb to use new_session_path instead of :controller
=> ''sessions'', :actions => ''new''
i guess for some reason i thought that even when using restful routes,
it would still match any custom named routes first. is that not true?
On Jan 28, 1:11 pm, Josh
<jjkie...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> i don''t know if something has changed or if there is something i
have
> just overlooked.
> i set up the restful authentication plugin and all works fine except
> for the fact that when i go to a page that requires authentication, i
> am not redirected to /sessions/new instead of /login.
>
> here is what i have in my routes file:
>
> map.login ''/login'', :controller =>
''sessions'', :action => ''new''
> map.logout ''/logout'', :controller =>
''sessions'', :action =>
> ''destroy''
>
> map.resource :session
>
> when i run rake routes, login and logout are at the top. is there
> something that was changed in the way routes are found now? before it
> would always use whatever was higher.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---