will_paginate appending escape=false to every page URL?

18 views
Skip to first unread message

Ezequiel Schwartzman

unread,
Aug 8, 2011, 12:58:58 PM8/8/11
to rubyonra...@googlegroups.com
It's visually annoying to see every URL with escape=false appended to
it. It doesn't even makes sense, disabling the escaping through a GET
parameter? What?

How do I disable it so the pages show up like ?page=1, instead of
?page=1&escape=false ? -.-

--
Posted via http://www.ruby-forum.com/.

Frederick Cheung

unread,
Aug 8, 2011, 3:46:40 PM8/8/11
to Ruby on Rails: Talk


On Aug 8, 5:58 pm, Ezequiel Schwartzman <li...@ruby-forum.com> wrote:
> It's visually annoying to see every URL with escape=false appended to
> it. It doesn't even makes sense, disabling the escaping through a GET
> parameter? What?

I've never seen that before. How are you invoking will_paginate?

Fred

Mislav

unread,
Aug 9, 2011, 8:59:17 AM8/9/11
to rubyonra...@googlegroups.com
That might be a bug with older versions. For Rails 3, use will_paginate 3.0.pre4 or later:

  gem "will_paginate", "~> 3.0.pre4"

Ezequiel Schwartzman

unread,
Aug 9, 2011, 8:32:07 PM8/9/11
to rubyonra...@googlegroups.com
Mislav MarohniÄ? wrote in post #1015695:

> That might be a bug with older versions. For Rails 3, use will_paginate
> 3.0.pre4 or later:
>
> gem "will_paginate", "~> 3.0.pre4"

Darn, I feel stupid for not trying that first, thanks haha

Walter Lee Davis

unread,
Aug 10, 2011, 8:22:05 AM8/10/11
to rubyonra...@googlegroups.com

On Aug 9, 2011, at 8:32 PM, Ezequiel Schwartzman wrote:

> Mislav MarohniÄ? wrote in post #1015695:
>> That might be a bug with older versions. For Rails 3, use
>> will_paginate
>> 3.0.pre4 or later:
>>
>> gem "will_paginate", "~> 3.0.pre4"
>
> Darn, I feel stupid for not trying that first, thanks haha
>
> --

Also, look closely at Kaminari for a nice replacement. I haven't tried
Will Paginate on 3, not since I found Kaminari.

Walter

Ezequiel Schwartzman

unread,
Aug 10, 2011, 11:29:27 AM8/10/11
to rubyonra...@googlegroups.com
Walter Davis wrote in post #1015942:

> On Aug 9, 2011, at 8:32 PM, Ezequiel Schwartzman wrote:
>
>> Mislav Marohni? wrote in post #1015695:

>>> That might be a bug with older versions. For Rails 3, use
>>> will_paginate
>>> 3.0.pre4 or later:
>>>
>>> gem "will_paginate", "~> 3.0.pre4"
>>
>> Darn, I feel stupid for not trying that first, thanks haha
>>
>> --
>
> Also, look closely at Kaminari for a nice replacement. I haven't tried
> Will Paginate on 3, not since I found Kaminari.
>
> Walter

Thanks! I will definitely take a look at it!
For the curious coming from Google (?) here is a link to a
nice tutorial of Kaminari
(http://asciicasts.com/episodes/254-pagination-with-kaminari) I found.

Reply all
Reply to author
Forward
0 new messages