Need help with letsrate?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

201 Stars 234 Forks 75 Commits 45 Opened issues


The best way to add rating capabilities to your rails application and your activerecord models.

Services available


Need anything else?

Contributors list

Letsrate Rating Gem

Provides the best way to add rating capabilites to your Rails application with jQuery Raty plugin.

Build Status Dependency Status Code Climate

Future Of The Letsrate Gem

This gem will be updated on very early 2015 with many features. :) You can send me a message if you want to be a part of it.



Add the letsrate gem into your Gemfile

gem 'letsrate'


rails g letsrate User

The generator takes one argument which is the name of your existing devise user model UserModelName. This is necessary to bind the user and rating datas. Also the generator copies necessary files (jquery raty plugin files, star icons and javascripts)


Suppose you will have a devise user model which name is User. The devise generator and letsrate generator should be like below

rails g devise:install
rails g devise user

rails g letsrate user # => user is the model generated by devise

This generator will create Rate and RatingCache models and link to your user model.


I suppose you have a car model

rails g model car name:string

You should add the letsrate_rateable function with its dimensions option. You can add multiple dimensions.

class Car < ActiveRecord::Base
  letsrate_rateable "speed", "engine", "price"

Then you need to add a call letsrate_rater in the user model.

class User < ActiveRecord::Base


There is a helper method which name is ratingfor to add the star links. By default ratingfor will display the average rating and accept the new rating value from authenticated user.

 /cars/1 %>

Speed : Engine : Price :

If you need to change the star number, you should use star option like below.

Speed :  10 %>
Speed :  7 %>
Speed : 

You can use the ratingforuser helper method to show the star rating for the user.

Speed :  10 %>


If you find bugs please open a ticket at

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.