Skip to content

Commit 6aa0b82

Browse files
committed
Move database.yml to an example file
1 parent dbbbca6 commit 6aa0b82

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Ruby on Rails Tutorial: sample application
22

3-
This is the reference implementation of the sample application for
4-
the [*Ruby on Rails Tutorial*](http://railstutorial.org/)
5-
by [Michael Hartl](http://michaelhartl.com/).
3+
This is the sample application for
4+
[*Ruby on Rails Tutorial: Learn Web Development with Rails*](http://railstutorial.org/)
5+
by [Michael Hartl](http://michaelhartl.com/). 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:
6+
7+
$ cd /tmp
8+
$ git clone git@github.com:railstutorial/sample_app_rails_4.git
9+
$ cd sample_app_rails_4
10+
$ cp config/database.yml.example config/database.yml
11+
$ bundle install
12+
$ bundle exec rake db:migrate
13+
$ bundle exec rake db:test:prepare
14+
$ bundle exec rspec spec/
15+
16+
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.

0 commit comments

Comments
 (0)