I’ve got a user who wants url’s to look like this:
Right now I have a route set up like this
map.user ‘:user’, :controller => ‘user’, :action => ‘show’
This causes problems when I get robots and people searching for urls
that don’t map to an existing user. So I want to put in something that
will catch the 404’s, log them in a database and route the searcher to
an appropriate page.
Is this something where I should change the route code or put in a
redirect inside of my user controller if the user is not found?
Any help on either how to do either of these 2 or other options would be
As a note, I am following the Adv Rails Recipes 404 code, but it’s not
quite working based on my current needs.