Skip to content

Instantly share code, notes, and snippets.

@alexch
Created March 22, 2012 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexch/2161772 to your computer and use it in GitHub Desktop.
Save alexch/2161772 to your computer and use it in GitHub Desktop.
creating a new rails app for Michael Hartl's RailsTutorial
# terminal:
rails new sample_app --skip-test-unit
cd sample_app
# add some gems to your Gemfile:
cat >> Gemfile
group :production do
gem 'pg'
end
group :development, :test do
gem 'rspec-rails'
end
group :test do
gem 'capybara', '1.1.2'
end
^D
# back in the terminal again:
bundle install --without production
rails generate rspec:install
git init
git add . # or git add -A
git commit -m "initial commit"
rake db:migrate
rake # should say "No examples matching ./spec{,/*/**}/*_spec.rb could be found"
# chapter 3 - static pages
rails generate controller StaticPages home help --no-test-framework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment