On 26 August 2010 08:29, Greg Ma
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.