Sam Ginko wrote:
> I would like to redirect a user to the index page  if they type in a
> page that does not exist on my site. How do I go about that?

The following as your last route, will catch any other requests that 
don't match any other routes.

map.blanket_route '*path', :controller => 'whatever', :action => 
'some_action'

Hope that helps.

Darrik

-- 
Darrik Mazey
DarmaSoft, LLC.
1627 Marigold Avenue
Akron, Ohio 44301-2627
office: 330.983.9941
    fax: 330.983.9942
mobile: 330.808.2025
[email protected]

To obtain my public key, send an email to [email protected].

--~--~---------~--~----~------------~-------~--~----~
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