jeudi 8 décembre 2016

Rails 3 - Including external routes within main routes.rb file

I have a config/routes.rb file in which I'd like to include, at the very bottom before a match statement that acts as a catch-all for invalid urls to redirect to 404, other routes which I want to declare in files inside of config/routes/*.rb directory.

Is there a way to just add in those match routes at the end? I want to have only one main routes file and then just "import" in the ones I declare outside of it.

Thanks

Aucun commentaire:

Enregistrer un commentaire