Application generator for Rails3
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 27 commits ahead, 27 commits behind leshill:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
files
.gitignore
README.md
app.rb

README.md

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.