Will paginate breaks with :select and :join in mysql
-
Jeff Dean
My bad - I didn't read the documentation well enough.
The count parameter does exactly what I need - so in the case above (for anyone finding this) the solution is:
Post.paginate(:select=>'posts.', :joins=>"inner join forums on posts.forum_id = forums.id", :page=>params[:page], :count=>{:select=>''})This was an invalid bug - sorry about that.
-
Chris Wanstrath
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.