我正在使用simple_form gem。我有一個相當直接的場景。我有一個範圍的路線,我試圖讓一種形式:simple_form_for無法識別f.input
= simple_form_for(@scope, @post) do |f|
= f.input :comment
簡化路由文件:
scope ':scope' do
resources :posts
end
但是我得到的錯誤:
undefined method `input' for #<ActionView::Helpers::FormBuilder:0x7f1b1eef1cb8>
我使用rails 3.0.12和simple_form 1.4.2
任何意見,我要去哪裏錯了?圍繞它這個
肯定。如果我沒有,那麼錯誤將在simple_form_for附近,而不是輸入 – Yule 2012-04-23 11:50:28