I'm using my search forms like this:
= simple_form_for @q, :url => categories_path, :html => {:method => :get} do |f|
and it works
instead of
= search_form_for @q do |f|
There are problems if I use simple_form?
Use
= search_form_for @q, :builder => SimpleForm::FormBuilder
On 16 December 2011 13:00, lucapette
[email protected]
wrote:
Use
= search_form_for @q, :builder => SimpleForm::FormBuilder
But if I use simple_form_for @q the search works anyway, so why I have
to use :builder => SimpleForm::FormBuilder?
@lucapette it works great, thanks
It is not possible to use methods like grouping_fields, combinator_select,.. if :builder => SimpleForm::FormBuilder is provided.
Is here some way how to use f.input from simple_form and also grouping_fields, combinator_select etc. form Ransack::Helpers::FormBuilder ?
You can only have one or the other. Right now you cannot combine Ransack and SimpleForm builders.
This was also discussed in #31.
Most helpful comment
Use
= search_form_for @q, :builder => SimpleForm::FormBuilder