Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Easily integrate Backbone.js into Rails 3
JavaScript Ruby CoffeeScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.DS_Store
.gitignore
Gemfile
README.markdown
Rakefile
bristle.gemspec

README.markdown

Bristle

Installation (Rails 3)

Bash$ gem install bristle

Classes

*bristle:dependency Backbone has dependencies, this generator downloads those files

*bristle:setup Add your backbone initializers

*bristle:scaffold Like rails, this generator build at a minimum the MVC files you need to get started.

Examples

  Bash$ rails generate | grep bristle

should produce the following generators...

  bristle:dependency
  bristle:scaffold
  bristle:setup

Usage

1. Paste the following in your Application Layout File. Remember to change RAILS_APP_NAME to something else. Same with FOO_router.

  

2. Run either first.

  Bash$ rails g bristle:dependency

or

  Bash$ rails g bristle:setup

3. Generate the files you need as you go. You can include a model name or the generator will default to Bristle with or with --coffee flag.

  Bash$ rails g bristle:scaffold MODEL_NAME

Tests

This gem isn't fully baked yet.

Something went wrong with that request. Please try again.