RESTful product tracker
The RESTful Product Tracker is a simple rails application I built to help people learn Rails.
I noticed there are not many simple examples of Rails applications out there to help a new Railer learn the ropes. I know I always learn best by tearing apart some real code.
In particular this app should help introduce you to some RESTful techniques offered by Rails 1.2.
Get the code
> svn co http://svn.depixelate.com/applications/restful_product_tracker > cd restful_product_tracker
Freeze to Rails 1.2.1 (optional)
If you don’t have Rails 1.2.1 then freeze it!
> rake rails:freeze:edge TAG=rel_1-2-1
> mysql mysql> create database product_tracker_development; mysql> create database product_tracker_test; mysql> exit;
> rake db:migrate > rake db:migrate RAILS_ENV=test
Load fixtures for some sample data
> rake db:fixtures:load
Start the server
Open a browser
Go to http://localhost:3000/companies