Ehud Rosenberg
2007-Apr-13 22:19 UTC
Default routing to main page and hiding the original request
Hi everyone, I''m currently redirecting every request that has not matched any other route to my site controller''s index action. so if someone has tried to access www.site.com/does/not/exist they are actually accessing www.site.com. However, the original request is still there and that''s bad. How can I forcefully redirect to www.site.com/? obviously it cant be done in the index action itself (since it will redirect for ever). I''m guessing the solution is pretty simple? Ehud -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---