Just a note about the REST Web Service examples in Chapter 10, pgs 383-388:
If you're using Rails 2.3, and you download the Chapter 6 code (without authentication), you'll have to rename
Code:
app/controllers/application.rb
to
Code:
app/controllers/application_controller.rb
and change
Code:
RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
to match your Rails version.
another way to fix this is to run:
I kept getting errors while trying to follow along in the book. It took me about 10 minutes to figure out these changes and to realize you should follow the CRUD sections in CRUD order. If you follow in the order presented in the book, you will have errors because there are no records in the database to read, assuming you've downloaded the code and started right away.
I may have been a bit hasty in following the examples, but this should help at least with the application_controller change in Rails 2.3.