Skip to content

Instantly share code, notes, and snippets.

@tommi-lew
tommi-lew / rails31init.md
Created December 25, 2011 00:44 — forked from docwhat/rails31init.md
Rails 3.1 with Rspec, Factory Girl, Haml, Database Cleaner, Spork, and Guard

Install Rails 3.1

gem install rails

generate new app, skipping Test::Unit file generation

rails new my_app -T

Set up Gemfile

@tommi-lew
tommi-lew / gist:1518571
Created December 25, 2011 00:44 — forked from dhh/gist:1014971
Use concerns to keep your models manageable
# autoload concerns
module YourApp
class Application < Rails::Application
config.autoload_paths += %W(
#{config.root}/app/controllers/concerns
#{config.root}/app/models/concerns
)
end
end
@tommi-lew
tommi-lew / Gemfile
Created June 29, 2012 15:41 — forked from robotarmy/Gemfile
Adding Rake to Sinatra with Rspec
gem 'sinatra'
group :development,:test do
gem 'rspec'
gem 'rack-test'
end