Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Latest commit

 

History

History
43 lines (33 loc) · 1.81 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.81 KB

Rails 3 Application Template

This is the Rails template I use to facilitate the quick setup of new Rails applications

Overview


  • Sets up RVM with your choice of Ruby and gemset
  • Removes Rails default files (index.html, rails.png)
  • Removes timestamps from migrations
  • Sets up a Git Repo
  • Integrates Twitter Bootstrap
  • Integrates parts of the HTML5Boilerplate
  • Adds Thin, Devise, CanCan, FriendlyId, Paperclip, Debugger and Minitest to Gemfile
  • Sets up Test environment using MiniTest (use rake test to run your tests)
  • Sets up Devise and CanCan, and generates a User model
  • Sets up Paperclip and adds Avatar to User
  • Sets up FriendlyId and adds slug on username
  • Adds bootstrap themed alerts and form error message partials
  • Generates welcome controller with root route set to index action

Prerequisites


RVM with at least one Ruby installed.

Usage


Clone the repository using

git clone git://github.com/damireh/rails3-template.git

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

rails new appname -m rails3-template/template.rb

Credits


Based on greendog99's rails template