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 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
$ 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.
cd into the project directory and build something!
The main HTML file is incorporated into
The stylesheets from HTML5 Boilerplate and 960.gs are all in
I opted not to use the jQuery provided with HTML5 Boilerplate, so Rails takes care of that.
This adds a few gems to a few environments.