Hi,

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/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to