Forum: Ruby on Rails Rating

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6e2b30f1afcb618ac9f30429016b8bb1?d=identicon&s=25 Krishna Porandla (krishna14)
on 2009-02-20 10:22
(Received via mailing list)
I would like to use acts_as_rateable for rating a model instance.
I need sample code for implement this feature.
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-02-20 11:02
(Received via mailing list)
Just check the link I posted earlier...
6e2b30f1afcb618ac9f30429016b8bb1?d=identicon&s=25 Krishna Porandla (krishna14)
on 2009-02-20 11:08
(Received via mailing list)
do we need has_many relationship for this application in link
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-02-20 11:19
(Received via mailing list)
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.
This topic is locked and can not be replied to.