Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.mkd
Octocat-spinner-32 rails31-slab.rb
README.mkd

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.

Using the Template

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

First: Install the rails 3.1.x gem:

gem install rails

if rails is already installed, make sure it's updated:

gem update rails

Second: 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.

Third: 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.

Something went wrong with that request. Please try again.