Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A collection of Rails3 Templates

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bootstrap
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 bootstrap.rb
Octocat-spinner-32 template.rb
README.md

Rails 3 Application Template

A rails 3 application template to set up authentication, testing, and template frameworks. The authentication system uses devise for the basic authentication support. The testing framework used is shoulda with factory girl and mocha support. HAML is used as the templating engine, with initial SASS support for the css. Formtastic is included for pretty forms support.

JQuery is used as the default javascript library.

The template also include gemset support for rvm.

Credit: This template is based off of Les Hill Template.

Using The Template

Assuming you have Rails 3 RC installed, you can run the following command.

rails new appname -m http://github.com/graemenelson/rails3-template/raw/master/template.rb

And a new Rails 3 application will be built and placed in the directory given by appname. Follow the given steps, and you are ready to go.

Next Steps

After the initial template is created, you can run the following command from within your application directory:

rails g rails g bootstrap:setup ModelName

Where ModelName is the name you want to give to the user model in your system. For example, if you want to use Account model then use the following command:

rails g bootstrap:setup Account

If you want to use AdminUser, then you can use:

rails g bootstrap:setup AdminUser
Something went wrong with that request. Please try again.