Redirecting all page queries to the homepage in Rails
Posted
by Dean Putney
on Stack Overflow
See other posts from Stack Overflow
or by Dean Putney
Published on 2010-05-28T05:36:46Z
Indexed on
2010/05/28
5:41 UTC
Read the original article
Hit count: 231
ruby-on-rails
|redirect
I've got a simple Rails application running as a splash page for a website that's going through a transition to a new server. Since this is an established website, I'm seeing user requests hitting pages that don't exist in the Rails application.
How can I redirect all unknown requests to the homepage instead of throwing a routing error?
© Stack Overflow or respective owner