RailsのViewHelperメモ

form

label / label_tag

<%= f.label(:hoge, 'abc') %>
# <label for="hoge">abc</label>

<%= label_tag(:hoge, 'abc') %>
# <label for="{object}_hoge">abc</label>
# for="{object名}_{メソッド名}"