I've just finished porting a php website to rails (apache + mongrel +
rails). It's my first rails app and things are working pretty well. I
have some basic questions on routing.
I want to change the routes so that I can redirect people to the main
page if they visit an old book mark e.g. www.foo.com/page.php would
display a custom 404 page informing the use to update their book mark.
Also I want the app to be more robust and not display errors if people
enter garbage urls. Currently if I enter
http://www.foo.com/feedback/action/5 I get:
No action responded to action
I would think that would display the 404.html file too but it's not.
Does anybody have some simple help on this or a pointer to a good
tutorial on this? All the ones I can find are on avoiding the 404 page.
I actually want that.
Thanks for any help.