filterrific icon indicating copy to clipboard operation
filterrific copied to clipboard

How to show URL params on filter form

Open pmaojo opened this issue 8 years ago • 4 comments

Hello, this is a usage question, not an issue

I have a filterrific form on the home page and another on the "properties" page. When you hit Search, it redirects to the results page and the results are ok but only some params are displayed on the form.

http://sunsethomesgrancanaria.com/en/

How can I make all the fields show the value on the #params?

pmaojo avatar Aug 18 '16 18:08 pmaojo

Hi @pmaojo Please how did you get urls params to even show on the url the first place?

Thanks.

Innarticles avatar Sep 08 '16 00:09 Innarticles

= form_for_filterrific(@filterrific, url: inmuebles_path, html: { id: :manual_filterrific_form }) do |f|

My problem was using options_for_select

pmaojo avatar Sep 11 '16 20:09 pmaojo

Thanks @pmaojo This is the error I got when I tried your code

undefined local variable or method `inmuebles_path' for #<#<Class:0x00000004b30b60>:0x00000004b12598>

Innarticles avatar Sep 12 '16 11:09 Innarticles

Inmueble is a model in my app

pmaojo avatar Sep 14 '16 22:09 pmaojo