meleyal / backbone-on-rails

A simple gem for using Backbone.js with Rails.
MIT License
809 stars 125 forks source link

Add a path prefix / namespace option to the generators #1

Closed meleyal closed 12 years ago

meleyal commented 12 years ago

The generators should accept a path so that:

rails generate backbone:scaffold solar_system/planet

Would generate:

app/assets/
├── javascripts
│   ├── application.js
│   └── solar_system
│       ├── test_app.js.coffee
│       ├── collections
│       │   └── planets.js.coffee
│       ├── models
│       │   └── planet.js.coffee
│       ├── routers
│       │   └── planets_router.js.coffee
│       └── views
│           └── planets
│               └── planets_index.js.coffee
└── templates
    └── solar_system
        └── planets
            └── index.jst.eco
JeanMertz commented 12 years ago

I second this request. I just came here looking for a solution to this problem. My app uses Backbone for the admin area, but only there, so it makes sense to namespace the backbone specific code to assets/javascripts/admin/.

meleyal commented 12 years ago

Fixed in fa22c916ce3a87e328d8b295b390754cb34421cd