ruby on rails - What purpose does the label form helper serve? -


what value label form helper add?

for example

<div class="field">   <td><%= f.label :recipe_created %></td>   <td><%= f.select(:recipe_created, [['yes', true], ['no', false]], {:include_blank => 'select'} )%></td> </div> 

what advantage have on following other scaffolding automatically create code above?

<div class="field">   <td>recipe created</td>   <td><%= f.select(:recipe_created, [['yes', true], ['no', false]], {:include_blank => 'select'} )%></td> </div> 

i trying bold labels , thought there might way define label couldn't find it.

you can bold labels via css using 'font-weight:bold;' property. label tags useful select/identify field in easy way.


Comments