Skip to content

alkesh/rails3-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Application generator for Rails3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%