Star rating in ruby on rails

August 30, 2007 at 6:03 pm Leave a comment

Recently I needed to implement star rating system for one of my project I am working on.

If you are not familiar with a star rating system, its simply a method of voting using (usually) 5 stars in a row, which will change colour as you hover over them indicating the level at which to rate something. You may think a simple rollover would accomplish this but difficulty arises because as you rollover each star it should stay highlighted while you light up the next one and so on until the end of the row of stars.

 

Install the acts_as_rateable plugin.

Run the following from the root of your Rails app to install the plugin

script/plugin install http://juixe.com/svn/acts_as_rateable

or
http://rubyforge.org/projects/rateableplugin/

You can original post at http//:satishchauhan.com

Advertisements

Entry filed under: ajax, css, rating, ror, Ruby on Rails.

How to Paginate With Ajax How to load selective fixtures to db in rails

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

August 2007
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Most Recent Posts


%d bloggers like this: