Re: [Rails] Re: Moving View Logic into Controller
On Wed, Nov 24, 2010 at 12:35 PM, Andrew Davis <lists@ruby-forum.com> wrote:
> Since I'm still learning, here is my attempt, is this what you are
> trying to say?
>
> http://pastie.org/private/hiqrzql2zb4qv5gr1drpa
>
> I think I understand what you're saying, just not sure if I'm doing that
> correctly.
Yes. That's it. Do your best to keep logic out of the views. It
will make your application more testable. The selection of data sets
is one type of logic.
HTH,
Bill
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home