Hello, them story a little the mess that I must with the redirects to
see if they can advise to me. Thanks.
I have 3 controllers
- admin/users
- admin/contents
- login
# file routes.rb
map.with_options( :controller => ''login'' ) do | a |
a.admin ''admin''
a.users ''admin/users'', :action =>
''index''
a.contents ''admin/contents'', :action =>
''index''
end
# if the user and the password are correct the filter index goes to
the method that contains
def index
redirect_to :controller => "admin/contents", :action =>
"index"
end
What it happens is when the controller login, redirects to admin/
contents the file routes.rb returns me a to redirect to the
controller login, with which in the end the navigator remains block :-
( (he is not strange to me, goes mess)
Some suggestion? Thank you very much.
Greetings.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---