How to make 404 page appear inside a view

I have a situation here where I have frontend controller and view and
menu on the left side of the frontend controller. I would like to make
it so that the 404 page would appear inside my frontend view instead of
displaying that 404.html from public dir.

How could I make Rails in production mode to do that? I guess I need a
method like error_404 inside the frontend controller file and then I
need a view, error_404.rhtml. But how to get Rails to redirect 404
errors to the frontend controller?

Yeah, I finally got it right :slight_smile:

Rails wiki was the path to the answer :wink:
http://wiki.rubyonrails.org/rails/pages/DynamicErrorPagesWish
Here’s the article with routing tips
http://www.fivesevensix.com/articles/2005/04/18/taking-care-of-old-links