This is a template for a new project that uses Rails 3.1, HTML5 Boilerplate, and
Switch branches/tags
Nothing to show
Pull request Compare This branch is 13 commits ahead of qiaopeng55:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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

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!


The Boilerplate

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


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


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.


This adds a few gems to a few environments.