Rating


#1

I would like to use acts_as_rateable for rating a model instance.
I need sample code for implement this feature.


#2

Just check the link I posted earlier…


#3

do we need has_many relationship for this application in link


#4

not explicitly. it is in fact a has_many relationship, because your
model has_many :rates, but you dont need to write that. the only thing
you have to write in your model is acts_as_rateable.

but that’s all in the example.