On Jan 16, 2012, at 2:03 PM, Bruno Meira wrote: > Hi Guys, > 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 automatically. > 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. Walter > > Thx. > Bruno Meira > > > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

