I\'m using will_paginate to paginate my geokit search results. The code works, however, when looking at the log it does double the geokit query when using the following will_paginate call:
I\'m encountering a problem with will_paginate while doing a complex find. :photohas_many:tags,:through => :tagships
I am upgrading a Rails application from 2.2.2 to 2.3.5. The only remaining error is when I invoke total_entries for creating a jqgrid.
I\'m using will_paginate as standard, but it only shows the pagination controls (< 1 2 > etc) when there\'s more than one page to display. Normally, this would be what is wanted, but I want to see
I have the following routes defined: map.resources :categories, :has_many => :downloads map.resources :downloads, :member => {:go开发者_如何学JAVA => :get}, :collection => {:tag => :ge
I\'m using the will_paginate gem for my Rails project and it\'s working beautifully.Unfortunately, on paginated result sets with a larger number of pages, the link section is too wide.Instead of:
I stumbled upon a problem of how to make work together acts_as_taggable (on steroids) and will_paginate gems. What I found on this problem is this: http://www.mckinneystation.com/2007/08/20/pagination
I have the will_paginate plugin working in an applicati开发者_开发百科on, but when I paginate a resource it just spits out the HTML as text, doesn\'t provide links to the next pages and such.
c = \"(f.profile_id = #{self.id} OR f.friend_id = #{self.id})\" c += AND + \"(CASE WHEN f.profile_id=#{self.id} THEN f.friend_id ELSE f.profile_id END = p.id)\"
In my Rails application I want to use the will_paginate gem to pa开发者_运维百科ginate on my SQL query. Is that possible? I tried doing something like this but it didn\'t work: