我尝试:
= form_for @question do |w|
%p
= w.select "question_status"
%option{:value => 1}= "label 1"
%option{:value => 2}= "label 2"
但得到:参数数量错误(1 对 2)
我尝试:
= form_for @question do |w|
%p
= w.select "question_status"
%option{:value => 1}= "label 1"
%option{:value => 2}= "label 2"
但得到:参数数量错误(1 对 2)