railsware/js-routes — Issue #32: Alternate Usage With Assets Pipeline
Author: vizjerai
Created: 2012-02-14 18:15:29+00:00
State: open

Instead of using the ```config/initializer/jsroutes.rb``` file you could create ```app/assets/javascripts/routes.js.erb``` that mimics what is in the gems' assets file.

```erb
<%= JsRoutes.assert_usable_configuration! && JsRoutes.generate({
:exclude => [/^(new_|edit_){0,1}admin\_/] # skips routes starting with new_admin_, edit_admin_ and admin_
})
%>
```