Ruby on Rails Tuesday, February 1, 2011

On Jan 31, 11:34 am, PalaniKannan K <kpalanikan...@gmail.com> wrote:
> Hi,
>
> I have hierarchical "if loops" like this
>
[snip]
>
> Kindly suggest me possible way to reduce this kind of junk "if loops".
>

Is there a reason you're not using helpers and/or partials? They're
the standard Rails method of reducing complexity in views...

--Matt Jones

--
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.

No comments:

Post a Comment