Skip to content

Rails 3 template with HTML5 Boilerplate in HAML and SASS, plus other goodies

Notifications You must be signed in to change notification settings

bsleys/hobo-rails-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hobo-rails-template

This template was forked from greendog-rails-template on github. It was modifed to use Hobo

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

Overview

  • Run Hobo wizard to setup Hobo
  • Incorporates hobo_jquery and paperclip_with_hobo
  • Incorporates Paul Irish's HTML5 Boilerplate v1.0 for template, reset, css, etc.
  • Templates, stylesheets, and views use haml and sass by default.
  • Compass for managing CSS mixins and frameworks.
  • Adds a simple 12-column grid framework from http://www.1kbgrid.com/ (converted to sass).
  • Uses Ethan Schoonover's Solarized for the default color palette.
  • 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.
  • Adds a Gemfile with commonly used 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. (hobo wizard)
  • Adds a demonstration page to help get started (/demos)

Changes

  • 2011-06-29: Removed full conversion to jquery due to Hobo requiring prototype. Added hobo_jquery and paperclip_with_hobo.
  • 2011-06-27: Integrated Hobo
  • 2011-04-10: Switched to manually-integrated blueprint and compass, instead of via existing gems. Changed default style to be simpler, and to use Solarized for the color palette.

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/bsleys/hobo-rails-template.git /tmp/hobo-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/hobo-rails-template/template.rb

Create your database, run your migration, and start the rails server with rails s.Browse to `http://localhost:3000/demos a sample page.

Documentation

See the documentation page for a summary of 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:

About

Rails 3 template with HTML5 Boilerplate in HAML and SASS, plus other goodies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 99.1%
  • JavaScript 0.9%