0
<%= f.label :name, 'Name' %>
正在導致以下錯誤。rails f.label error
undefined method `extract_label_options!' for #<ActionView::Helpers::InstanceTag:0x20ce700>
<%= f.label :name, 'Name' %>
正在導致以下錯誤。rails f.label error
undefined method `extract_label_options!' for #<ActionView::Helpers::InstanceTag:0x20ce700>
檢查您的form_for
,或者將您的整個表單粘貼到此處。
只要寫
<%= f.label :first_name %>
這意味着
<label for="person_first_name">First name</label>: