Home > rails31-template

rails31-template

Rails31-template is a project mainly written in ..., it's free.

This is a template for a new project that uses Rails 3.1, HTML5 Boilerplate, and 960.gs.

Rails 3.1 Template

This is a template for new Rails projects. It incorporates files from these projects to provide a solid basis for a new site.

  • Rails (this was tested with version 3.1.0.rc5);
  • HTML5 Boilerplate;
  • 960.gs; and
  • a few gems (see below).

Using the Template

Using this is as easy as 1-2-3.

First: Create a new Rails project, using the rails31-slab.rb file as a template:

$ rails new PROJECT -m https://github.com/scholarslab/rails31-template/raw/master/rails31-slab.rb

Answer the questions. It will ask whether you want to install devise, and if so, what you want to name the model for users. If you do want to use devise, look through the messages for some post-install instructions.

Second: cd into the project directory and build something!

Details

The Boilerplate

The main HTML file is incorporated into app/views/layouts/application.html.erb.

Stylesheets

The stylesheets from HTML5 Boilerplate and 960.gs are all in vendor/assets/stylesheets.

JavaScript

I opted not to use the jQuery provided with HTML5 Boilerplate, so Rails takes care of that.

The other JavaScript bundled with HTML5 Boilerplate is in vendor/assets/javascripts.

Gems

This adds a few gems to a few environments.

  • rspec-rails for development and test.
  • annotate for development.
  • ffaker for development.
  • simplecov for development and test.
  • webrat for test.
  • spork for test.
  • factory_girl_rails for test.