The Rails Tutorial Sample App, 2nd Edition
Ruby CSS Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app Trim whitespace Jun 17, 2013
config Add example database.yml and update README Aug 6, 2013
doc Initial commit Mar 8, 2012
features Switch to gender-neutral language Nov 30, 2013
public Finish layout and routes Mar 8, 2012
script Add Cucumber features Apr 20, 2012
spec Polish Jul 16, 2013
vendor Remove vendor cache Mar 8, 2012
.gitignore Upgrade to Rails 3.2.15 Oct 20, 2013
.rspec Finish static pages Mar 8, 2012
Gemfile Bump version number Dec 4, 2013
Guardfile Update the Guardfile Apr 18, 2012
LICENSE Ax some closing paragraph tags Mar 6, 2013
Rakefile Initial commit Mar 8, 2012 Initial commit Mar 8, 2012

Ruby on Rails Tutorial: sample application

This is the sample application for Ruby on Rails Tutorial: Learn Web Development with Rails by Michael Hartl. You can use this reference implementation to help track down errors if you end up having trouble with code in the tutorial. In particular, as a first debugging check I suggest getting the test suite to pass on your local machine:

$ cd /tmp
$ git clone
$ cd sample_app_2nd_ed
$ cp config/database.yml.example config/database.yml
$ bundle install
$ bundle exec rake db:migrate
$ bundle exec rake db:test:prepare
$ bundle exec rspec spec/

If the tests don't pass, it means there may be something wrong with your system. If they do pass, then you can debug your code by comparing it with the reference implementation.