Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Application generator for Rails3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .rvmrc
Octocat-spinner-32 README.md
Octocat-spinner-32 app.rb
Octocat-spinner-32 cuke.rb
Octocat-spinner-32 fabrication.rb
Octocat-spinner-32 fabrication_cuke.rb
Octocat-spinner-32 mongomapper.rb
README.md

Rails 3, RSpec, Fabrication or Factory Girl, Haml, and jQuery

Usage

Easily generate a Rails 3 application with RSpec, Factory Girl, Haml, and jQuery in one line:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/app.rb

Need Cucumber?

Use this generator file instead:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/cuke.rb

Want Fabrication instead of Factory Girl?

Use either of the following generators instead:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/fabrication.rb

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/fabrication_cuke.rb

Use MongoMapper?

Use this generator file:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/mongomapper.rb

rvm

We love rvm, so the application has an .rvmrc generated to specify a gemset.

Generators

We use the Factory Girl and Haml Rails 3 generators — the generators for RSpec and Fabrication are packaged within their respective gems. The Factory Girl and Haml generators are from the haml-rails and factory_girl_generator gems.

jQuery

We use the jquery-rails generator to pull in the latest and greatest jQuery into the app.

git

We love git, so the application has a git repo initialized with all the initial changes staged.

Wrap Up

After the application has been generated, there are a few final command to finish the install, check the output!

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don’t break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.
Something went wrong with that request. Please try again.