Skip to content

An application generator for Rails 3 including: haml, compass, rspec2, capybara and devise

Notifications You must be signed in to change notification settings

mcolyer/rails3-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 

Repository files navigation

A rails 3 application template which provides the gems I think are the best of breed.

** Authentication **

  • devise

** Testing **

  • rspec2
  • capybara
  • steak
  • factory_girl

** Frontend **

  • haml
  • sass
  • compass
  • compass-susy
  • jquery

How to use

rails new my_app -J -T -m  http://github.com/mcolyer/rails3-app/raw/master/app.rb
cd my_app
gem install bundler
bundle install
script/rails generate rspec:install

rvm

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

Generators

This also gives you the Factory Girl and Haml Rails 3 generators — the generators for RSpec are in the RSpec gem — so that your factories and views are generated using Factory Girl and Haml, and that all your generated tests are specs. These generators are from the haml-rails and 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.

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 in a branch.
  • Send me a pull request.

About

An application generator for Rails 3 including: haml, compass, rspec2, capybara and devise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%