Rails Label Helper For Forms
Join the DZone community and get the full member experience.Join For Free
When creating forms I get tired of creating labels for each field so I like to shorten my typing by using this application helper.
def l(id,label) "" endthen later on in your view you type
<%= l('my_field_id','My Label') %>
Form (document) Label
Opinions expressed by DZone contributors are their own.