I’m using the simple_form gem. I have a fairly straightforward scenario. I have a scoped route and I’m trying to get a form:
= simple_form_for(@scope, @post) do |f|
= f.input :comment
Simplified routes file:
scope ':scope' do
resources :posts
end
However I get the error:
undefined method `input' for #<ActionView::Helpers::FormBuilder:0x7f1b1eef1cb8>
I’m using rails 3.0.12 and simple_form 1.4.2
Any advise where I’m going wrong?
One way around it this (although not ideal is to use simple_fields for. I’ll stick with this until there is a better solution.