How do I add something to each route in Rails?
-
19-08-2019 - |
Question
Is there an easy way to add a permanent string to every route in a Rails app, given that I already have quite a few resources specified and don't want to refactor all into a namespace?
Can I do something along the lines of
map.root 'myappnamehere'
and have that string appended to the beginning of all routes? I realise that this is not how I implement map.root normally.
TIA
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow