# Advice on rating system

**URL:** <https://www.ruby-forum.com/t/advice-on-rating-system/193890>\
**Category:** Rails\
**Created:** [August 26, 2010, 9:29am UTC](https://www.ruby-forum.com/t/advice-on-rating-system/193890 "2010-08-26T09:29:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gregm](https://www.ruby-forum.com/u/gregm)\
**Post date:** [August 26, 2010, 9:29am UTC](https://www.ruby-forum.com/t/advice-on-rating-system/193890/1 "2010-08-26T09:29:28Z")

</div>

Hi,  
I’m doing a simple rating system, but I need and advice on the  
controllers. My system rates article.

Should I add an action rate in the article controller or should I create  
a rate controller and add the action create?  
What’s the cleanest way?

Greg

---

<div class="post-metadata">

**Author:** ![gregm](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/bc79bd/32.png) [@gregm](https://www.ruby-forum.com/u/gregm)\
**Post date:** [August 26, 2010, 12:32pm UTC](https://www.ruby-forum.com/t/advice-on-rating-system/193890/2 "2010-08-26T12:32:01Z")

</div>

On 26 August 2010 08:29, Greg Ma [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> I’m doing a simple rating system, but I need and advice on the  
> controllers. My system rates article.
> 
> Should I add an action rate in the article controller or should I create  
> a rate controller and add the action create?  
> What’s the cleanest way?

What models and relationships do you have? I ask because it is not  
clear whether a rating is just an attribute of an article or whether  
an article has many ratings, so that a Rating is a model in it’s own  
right.

Colin
