Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.33 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.33 KB

Rails 3 Template

This template includes:

  • Cucumber
  • Factory Girl
  • Flutie
  • Formtastic
  • JQuery
  • RSpec
  • Shoulda

Download the app.rb file, and then easily generate a Rails 3 application with the above in one line:

% rails new my_app -J -T -m app.rb

Once this has completed - cd to your new application's directory, and run the following:

% bundle install

(Due to a bug in rails, it is not currently possible to do the following:

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

This will be fixed in rails 3.0.5

rvm

The application has an .rvmrc generated to specify a gemset.

Generators

This also gives you the Factory Girl generators — the generators for RSpec are in the RSpec gem — so that your factories are generated using Factory Girl , and that all your generated tests are specs. These generators are from the factory_girl_generator gems.

JavaScript Includes

Since the Rails helper javascript_include_tag :defaults is looking for Prototype, we change the default JavaScript includes to be jQuery.

git

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