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