I create a action called "error404" in controller "pages", I would like to display this action if the following situation occurred:
- the controller in URL is not existed
- the action in URL is not existed
what should I do?
I tried to follow the instruction in this page, http://stackoverflow.com/questions/2553365/show-a-404-instead-of-500-in-rails , but seems only work with first situation.
Thanks for help. :)