Application generator for Rails3
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
Use this generator file instead:
% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/cuke.rb
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 this generator file:
% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/mongomapper.rb
We love rvm
, so the application has an .rvmrc
generated to specify a gemset.
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.
We use the jquery-rails generator to pull in the latest and greatest jQuery
into the app.
We love git
, so the application has a git repo initialized with all the initial changes staged.
After the application has been generated, there are a few final command to finish the install, check the output!