amatsuda/kaminari — Issue #182: Pagination generates ugly url's (includes all params)
Author: Godisemo
Created: 2011-12-01 22:06:48+00:00
State: open

I have an issue with ugly url's. A post action generating a view with a pagination. The links end up really nasty

```
/company/stores?_method=put&authenticity_token=sYdz9iRD59ke%2BAYB6kfgqTLHZ2VlL9GMh8m5kDrGxE4%3D&city_search=&commit=Update+Store&page=3&store%5Baddress%5D=Vipem%C3%B6llev%C3%A4gen+113&store%5Bcity%5D=Lund&store%5Bpostcode%5D=224+60&utf8=%E2%9C%93
```
My temporary solution is to manually reset all params like

```ruby
paginate @list_stores, remote: true, :params => { :controller => 'stores', :action => 'index', _: nil, _method: nil, authenticity_token: nil, store: nil, commit: nil, utf8: nil}
```

I would really like a way to only include some defined parameters instead of my hack to exclude these.