Thanks, I did updated will_paginate gem and still the problem. Looks 
like it is not compatible with rails 4.1

The last version is of 3.0.5 September 18, 2013 (34 KB) according to the 
link below:
https://rubygems.org/gems/will_paginate/versionsOn

However, on rails 4.0.4 it works beautifully.

Rod

> On Friday, April 11, 2014 2:34:12 AM UTC+1, Ruby-Forum.com User wrote:
>>
>> After I upgraded from rails 3.2 to 4.1 I am getting this error
>> below.
>>
>> I researched that Rails 4.1 requires a conversion of an
>> activerecord_relation to an array using to_a. I did use to_a but looks
>> like rails is doing a select count behind the scenes. Do you know how to
>> fix this?
>>
>> I don't think the to_a stuff is relevant. Your pagination library
> (will_paginate?) is counting the total number of entries and appears to
> be
> producing a bad query to do that, because of the select query. Perhaps
> try
> updating it?
>
> Fred

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

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7b60d247d12663e6a20c0b0c4decd4c9%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to