In my Rails 3 app I want to log 'unknown action' and 'routing error'
incidences and re-direct to the home page. With this goal in mind, I
added the following to bottom of my routes.rb file:
match '*' => 'home#index'
I thought that this catch-all would re-direct to the home page in case
of 'unknown action' or 'routing error' issues. However, in spite of
having the catch-all statement, I still get the aforementioned error
pages rather than being re-directed to the home page. Anyone know why
the re-direction is not occurring? Thanks.
-Dan
--
Posted via http://www.ruby-forum.com/.