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.

Enjoy!

Home page

Home page

Company view

Company view

Edit company

Edit company

Products listing

Products listing

Product view

Product view

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

Setup databases

> mysql
mysql> create database product_tracker_development;
mysql> create database product_tracker_test;
mysql> exit;

Run migrations

> rake db:migrate
> rake db:migrate RAILS_ENV=test

Load fixtures for some sample data

> rake db:fixtures:load

Start the server

> ./script/server

Open a browser

Go to http://localhost:3000/companies

Comment or question via
FYI: This post was migrated over from another blogging engine. If you encounter any issues please let me know on . Thanks.