meleyal/backbone-on-rails — pull request #7 by JeanMertz (2011-12-07 16:39:16+00:00)
Title: Allow namespacing for generators

This commit adds some options to the genrators:

**rails generate backbone:install**

```
Usage:
rails generate backbone:install [options]

Options:
-j, [--javascript] # Generate JavaScript
-n, [--namespace=NAMESPACE] # Create a namespace (using 'my/namespace')
-a, [--asset=ASSET] # Provide assets collection file
# Default: application.js

Runtime options:
-f, [--force] # Overwrite files that already exist
-p, [--pretend] # Run but do not make any changes
-q, [--quiet] # Supress status output
-s, [--skip] # Skip files that already exist

Generates a Backbone.js skeleton directory structure and mainfest
```

**rails generate backbone:scaffold**

The scaffold generator now accepts both `posts` and `admin/posts` as NAME, this results in a namespaced scaffold.