Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_form instead of search_form? #46

Closed
ghost opened this issue Dec 13, 2011 · 6 comments
Closed

simple_form instead of search_form? #46

ghost opened this issue Dec 13, 2011 · 6 comments

Comments

@ghost
Copy link

ghost commented Dec 13, 2011

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?

@lucapette
Copy link

Use

= search_form_for @q, :builder => SimpleForm::FormBuilder

@ghost
Copy link
Author

ghost commented Dec 18, 2011

On 16 December 2011 13:00, lucapette
reply@reply.github.com
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?

@potomak
Copy link

potomak commented Mar 9, 2012

@lucapette it works great, thanks

@lksv
Copy link

lksv commented Oct 3, 2012

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 ?

@radar
Copy link
Contributor

radar commented Oct 10, 2012

You can only have one or the other. Right now you cannot combine Ransack and SimpleForm builders.

@radar radar closed this as completed Oct 10, 2012
@radar
Copy link
Contributor

radar commented Oct 10, 2012

This was also discussed in #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants