Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Never embed your routes in javascript again!
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/assets/javascripts
lib
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
routes-js.gemspec

README.rdoc

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.

Something went wrong with that request. Please try again.