Download the sample completed StarMovies project from section. Run the following commands to see it in action:


rake db:create

rake db:migrate

mysql -u root StarMovies_development < movies.sql


The following files are heavily commented and it will help quite a bit to read them:


app/views/movies/rate.html.erb

public/javascript/rate.js

db/migrate/20090307003341_create_ratings.rb


Download the section slides