Created
March 22, 2012 18:52
-
-
Save alexch/2161772 to your computer and use it in GitHub Desktop.
creating a new rails app for Michael Hartl's RailsTutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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