- The Markdown markup language was used for this README.
- Great Rails tutorial.
- RVM - Ruby version management is awesome.
- Rails 3.1 on Heroku.
- User
- Book
- Comment
- Rating
Branch when starting on something new. $git checkout -b something-new
Merge with master branch. $git checkout master $git merge something-new
Delete the obsolete branch. $git branch -d something-new
Writing the test. spec/controllers/pages_controller_spec.rb
... render_views
describe "GET 'about'" do it "should be successful" do get 'about' response.should be_success end
it "should have the right title" do get 'about' response.should have_selector("title", :content => "Bookshelf") end end
...
Run the test.
$rspec spec/