mercredi 23 septembre 2015

Ruby on Rails Custom Rails Resource Routing Error Pages

I would like to route all broken site links for a rails resource to a particular custom error page and all other broken links to another custom error page. For example:

/locations/wrong-location - Invalid location error page

/products/wrong-product - Invalid product error page

Does anyone know how to do this in Rails 3.2?

Aucun commentaire:

Enregistrer un commentaire