Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails 3 template with HTML5 Boilerplate in HAML and SASS, plus other goodies
branch: master

This branch is 18 commits behind greendog99:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
files
README.md
_appconfig.rb
_application.rb
_boilerplate.rb
_capistrano.rb
_cleanup.rb
_demo.rb
_devise.rb
_forgery.rb
_friendly_id.rb
_git.rb
_helpers.rb
_layouts.rb
_rspec.rb
_rvm.rb
_stylesheets.rb
template.rb

README.md

greendog-rails-template

This is a Rails Template to facilitate the quick set-up of new Rails applications.

Overview

  • Sets up the compass-html5-boilerplate gem by Peter Gumeson (sporkd). This provides:
  • Adds a simple 12-column grid framework from http://www.1kbgrid.com/ (converted to sass).
  • Adds a basic stylesheet with header, nav bar, body, and footer, and styles for flash messages and buttons.
  • Adds a partial to render form error messages.
  • Removes everything to do with Prototype, since the Boilerplate is based on JQuery.
  • Removes unneeded files like the default Rails index.html and image.
  • Adds a Gemfile with commonly needed gems, and some some optional gems available to un-comment when needed.
  • Creates a custom RVM gemset for the application, and installs all Gems via bundler.
  • Uses RSpec and factory_girl instead of test-unit.
  • Implements automatic log rotation for server logs, based on log size.
  • Adds a config/app_config.yml file and corresponding initializer, to facilitate app-specific config settings.
  • Disables timestamped_migrations to make the filenames more usable in TextMate.
  • Sets up a Git repository complete with gitignore list, and commits the entire project.
  • Adds a demos controller and several demo pages to help get started.

Prerequisites

  • Rails 3.0 or newer
  • RVM with at least one Ruby installed

Usage

Get a copy of the template:

git clone git://github.com/greendog99/greendog-rails-template.git /tmp/greendog-rails-template

Create a new Rails application as normal, specifying the path to the template script with the -m flag:

rails new appname -d mysql -m /tmp/greendog-rails-template/template.rb

Create your database, run your migration, and start the rails server with rails s.Browse to http://localhost:3000/demos/text and http://localhost:3000/demos/grid to see sample pages.

Documentation

This section will explain how to use each of the features.

To Do

  • Add capistrano deploy.rb file.
  • Optionally (based on user interrogation) set up features like devise, paperclip, etc.

See Also

Credits

Thanks to others whose work has steered me in the right direction:

Something went wrong with that request. Please try again.