will_paginate
will_paginate copied to clipboard
Pagination library for Rails and other Ruby applications
The method used to generate the list of visible page numbers is wildly inefficient if you have a large number of pages. I've reworked the algorithm to run in constant...
ruby 1.8 - rails 2.3.8 - will_paginate 2.3.15 We use will_paginate extensively in our application (an asset management and trouble ticketing tool) It works pretty nice, except for an app...
I'm trying to sort my jqgrid like this: def index tup = SmartTuple.new(" AND ") tup params[:sixd] ``` respond_to do |format| format.html format.json { render :json => users.to_jqgrid_json([:id,:firstname,:lastname,:email,:function], params[:page], params[:rows],...
In the project I use MS SQL Server 2005 Pagination works well if I do inquiry: Tariffication.paginate(:page => 1, :per_page => 30) But doesn't work on inquiry: Tariffication.includes(:otdel).paginate(:page => 1,...
Hello, Using will_paginate on a HABTM association (Bookmark HasMany Tags through Taggings) results in 3 queries, while the 2nd has following issue: ``` def self.search(search, page, order_by, order_direction, per_page) #...
> Depending on the database engine and table size, queries may get more expensive as the OFFSET value gets larger. This results in the query for page 20, for example,...
Adding [default per_page ](https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/per_page.rb#L25-L26)to documentation to make it more explicit for developers.
To avoid breaking the page display when there's only one page, pagination should always be present.
It has been observed that using active record `.merge` can result in having `.limit_value` as `nil`. This can cause `.total_entries` and `.total_pages` to fail with the error `comparison of Integer...
This adds a small fix that avoids a FrozenError if you're running your app with `--enable-frozen-string-literal`. If you like I could also add it to script/test_all to avoid any future...