Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 518 Bytes

README.rdoc

File metadata and controls

22 lines (12 loc) · 518 Bytes

RoutesJs 0.0.3

Makes Rails route helpers available to javascript

To get started:

Add ‘routes-js’ to your Gemfile

Add

//= require routes

to your application.js

To configure a custom namespace (default is your Rails application name):

RoutesJs::Config.namespace = "ApplicationNamespace"

Testing if it’s all good

Launch your Rails application, then hit the url localhost:3000/assets/routes.js (assuming your Rails server is running on port 3000)

This project rocks and uses MIT-LICENSE.