[Rails] Re: Best Practices question regarding views & controllers

Alain Ravet
Fri, 03 Mar 2006 10:31:00 -0000

Raphael
    > Where do you usually draw the line? Is it okay to, say, loop
through an
    > array of hashes that represents table column names and whether
they need
> a certain colspan and build the table according to that?


If it - the code - has no impact on/is not impacted by/has nothing to do
with the model or the business rules, you can safely put it in the view
or helper.
I guess there may be exceptions :)

Alain