2010-02-21 45 views
0

<%= f.label :name, 'Name' %>正在導致以下錯誤。rails f.label error

undefined method `extract_label_options!' for #<ActionView::Helpers::InstanceTag:0x20ce700> 

回答

0

檢查您的form_for,或者將您的整個表單粘貼到此處。

1

只要寫

<%= f.label :first_name %> 

這意味着

<label for="person_first_name">First name</label>: 
相關問題