- To preserve the params of url I did this:
1 2 3 4 |
|
1 2 3 4 5 6 7 8 |
|
alternative solutions
http://filterrific.clearcove.ca
http://www.lauradhamilton.com/how-to-filter-by-multiple-options-filterrific-rails
https://github.com/plataformatec/has_scope
[reference]
http://apidock.com/rails/v3.2.13/ActionView/Helpers/UrlHelper/url_for
http://stackoverflow.com/questions/6625293/how-to-add-parameters-to-current-url-in-rails
http://www.justinweiss.com/blog/2014/02/17/search-and-filter-rails-models-without-bloating-your-controller/
http://guides.rubyonrails.org/active_record_querying.html#scopes