On Jan 16, 2012, at 2:03 PM, Bruno M. wrote:
I was reading an article and one question come into my mind…
I know that rails view helpers, like: form_for, select_tag, makes the HTML code
But at the performance view, is it a good idea?.
I mean, using this kind of helpers will include some “server-side” calls.
My question is:
Is a good Idea use this kind of helpers or create HTML code by myself?
Helpers keep everything following the rules. You don’t have to figure
out what the ID should be or what the field name should be, the helper
makes it all perfectly uniform and keeps it what the controller expects.
As far as I know, there is no penalty for this, except maybe at
application start time, when all of these view helpers are compiled and
concatenated once and for all.