On 26 August 2010 08:29, Greg Ma <[email protected]> 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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to