jhund / filterrific

Filterrific is a Rails Engine plugin that makes it easy to filter, search, and sort your ActiveRecord lists.
http://filterrific.clearcove.ca
MIT License
910 stars 124 forks source link

How to show URL params on filter form #100

Open pmaojo opened 8 years ago

pmaojo commented 8 years ago

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?

Innarticles commented 8 years ago

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

Thanks.

pmaojo commented 8 years ago

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

My problem was using options_for_select

Innarticles commented 8 years ago

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

undefined local variable or method `inmuebles_path' for #<#<Class:0x00000004b30b60>:0x00000004b12598>
pmaojo commented 8 years ago

Inmueble is a model in my app