Hi Austin,
Check out this article by Jamis Buck, I think he explains it well why
it''s better to have models pulling as much of their weight as they
can.
http://weblog.jamisbuck.org/2006/10/18/skinny-controller-fat-model
Tim Case
On 11/14/06, Austin Govella
<austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I suspect my brain is staring to reform itself to Rails thinking, but
> I need help with a concept:
>
> On p. 150 of the Agile Web Dev book, we put a method in the Orders
> model: add_lineitems_to_cart.
>
> Why did this go in the Orders model instead of the Store controller
> (where we were just saving the cart to the database)?
>
>
>
> Thanks,
> --
> Austin Govella
> Thinking & Making: IA, UX, and IxD
> http://thinkingandmaking.com
> austin.govella-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---