Whenever a user hits the wrong page, rails shows 404.html from the public folder. However, I\'d like just to redirect the browser to the root page, without showing anything.
You need create a controller to do that
class RedirectsController def index redirect_to root_url end end
And in your routes
map.connect '*', :controller => 'redirects', :action => 'index'