RailsGrunt

a noob working the ruby railroad.

rating system for rails

February 23rd, 2007

Adding a rating system to your rails application is easy even the Grunt can do it! Check it out here Follow the directions carefully and you should be up in no time.

The only tricky part that i came accross was the div part in the view.

basically just replace article.id with the id of whatever model you are displaying in your view, and also place the type in the :asset definition. What this does is that the particular div will get updated without a whole page refresh and the asset is used to keep track of the type in the database.