Sample code used in The Rails 3 Way
Ruby JavaScript
Latest commit 4d6a7c0 Jul 14, 2010 @delitescere delitescere committed with Pairing Workstation Sears Markdown it
Permalink
Failed to load latest commit information.
app
autotest
config
db Add total_spend and queries Jun 4, 2010
doc Begin updating for Rails 3 Jan 24, 2010
lib
public add comment Jun 4, 2010
script
spec
test
vendor/plugins HAML plugin updated automatically May 18, 2010
.gitignore
.rspec
.rvmrc Make stuff work with Rails 3 beta4 and RSpec 2 Jul 14, 2010
Gemfile
Gemfile.lock Make stuff work with Rails 3 beta4 and RSpec 2 Jul 14, 2010
README.md
Rakefile
config.ru Fix application name in rack config Jan 24, 2010

README.md

Welcome to The Rails 3 Way

This is a sample application that will help you follow along in the book.

Issues

  • Assuming OS X 10.6.4
  • Lots of Rails, RSpec, and Bundler things are in flux, as well as Ruby 1.9.
  • This app should work under Ruby 1.8.7-p299 and Ruby 1.9.2.rc1
  • You need mysql 5.1.41 if running Ruby 1.9.2.rc1 (to avoid seg faults)

Setup

For now:

  • gem install bundler --pre
  • gem install rails --pre
  • gem install rspec-rails --pre
  • gem install ruby-debug#19 #remove the comment before '19' if on Ruby 1.9
  • bundle install
  • rake test && rake spec #to run the tests