Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

63 lines (42 sloc) 1.565 kb

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.

Jump to Line
Something went wrong with that request. Please try again.