routesjs-rails
Make your Rails routes available in JS!
Installation
Just add gem routesjs-rails to your Gemfile and run bundle install
Using with Sprockets
Add //= require routesjs-rails to your application.js file.
Generating Routes
If you want to create a routes file manually, you can run bundle exec routesjs:generate which will
show you a JSON version of your routes.
You can save this output to a file, or use it to inspect the generated result if necessary.