Skip to content

The Rails 3.0 project template we use at Singlebrook

Notifications You must be signed in to change notification settings

caseydreier/Singlebrook-Rails-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

Singlebrook Rails 3.0 Template

To use this Rails project template, go to a directory in which you’d like to make a new Rails 3.x app, and then:

rails new my_app_name -m https://github.com/daphonz/Singlebrook-Rails-Template/raw/master/singlebrook_template.rb

What it does is the following:

  • Removes index.html, generic README, and a few other standard files.

  • Removes prototype and downloads JQuery 1.5.1 and the rails.js JQuery interface.

  • Initializes a new Git repository and commits all generated code.

  • Creates an initializer to define a custom Error404 class and define a rescue_from() routine in the ApplicationController

  • Adds exception notifier plugin and creates an initializer with default settings.

  • Adds pagination gem Kaminari.

  • Adds gems for testing: Factory Girl, Mocha, Cucumber, and Capybara.

  • Adds redgreen gem for pretty Test::Unit console output.

  • Configures generators to generate HAML views and test factories instead of ERB and fixtures.

  • Adds gem for HAML and uses HAML for views and SCSS for styles.

  • Creates a Capistrano scaffold for staging and production.

  • Utilizes the Nifty Generators gem to define an application layout and SCSS stylesheet.

  • Runs bundler.

This templates assumes you have the following components setup in your system:

  • Git

  • Bundler >= 1.0

Rails 2.3 Template

The old application template for Rails 2.3.x is still available. Example usage:

rails my_app_name -m https://github.com/daphonz/Singlebrook-Rails-Template/raw/rails2.3/singlebrook_template.rb

About

The Rails 3.0 project template we use at Singlebrook

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages