# Rails::Routes::Js::Utils Make rails route available via window.Routes.*_path() and Array window.AllRoutes ## Installation Add this line to your application's Gemfile: gem 'rails-routes-js-utils' And then execute: $ bundle Or install it yourself as: $ gem install rails-routes-js-utils Add this to application.js ``` //= require rails-routes-js-utils ``` ## Usage ```javascript Routes.blog_post_path(123) Routes.blog_post_path({id: 123}) Routes.blog_posts_path() for (var i=0; i