will_paginate
will_paginate copied to clipboard
Pagination library for Rails and other Ruby applications
Kept running into this error and didn't know why. Finally figured it's this gem's problem. Getting this error when calling total entries or just looping through @profiles ``` PG::UndefinedFunction: ERROR:...
When performing search on engine_config table, the first page of the search result is properly displayed. However when clicking 2nd page on the search output page, there is an error:...
Rails 3.2.13, will_paginate 3.0.4 When I have a query that does grouping the result count coming from will_paginate is incorrect due to the way the query is built up for...
This plugin don't works with postgres for some queries that have distinct and selecting more than one column because Postgres follow sql standard strictly and mysql added few things in...
Ruby 1.9.3, Rails 3.2, Mongoid 3.1, will_paginate 3.0.4 I should still be able to use the `selector` method on a collection, even when I've paginated it, but I can't: Not...
I found a mention in an old lighthouse post about a to_xml method on a pagination collection, but I can't seem to find it anywhere in the source. Is this...
See the command and its result :- User.group(:email).paginate(:page => 1, :per_page => 5) User Load (1.9ms) SELECT `users`.\* FROM `users` GROUP BY email LIMIT 5 OFFSET 0 (1.3ms) SELECT COUNT(*)...
Using rails 3.2.11 and will_paginate 3.0.4. In the following, `settings` is a controller inside a namespace, and `pages` is a controller not inside any namespace. **config/routes.rb** ``` ... namespace :admin...
blog_posts.rb `has_and_belongs_to_many :tags, :uniq => true` tag.rb `has_and_belongs_to_many :blog_posts, :uniq => true` Per the [documentation](http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#M002126) for ActiveRecord, :uniq does not prevent duplicate relationships being stored, it just ignores them when...
`will_paginate` [uses ActionController's url_for helper](https://groups.google.com/forum/?fromgroups=#!topic/will_paginate/0BQrUSz8qdU) which makes it a piece of cake to have user/SEO friendly URLs in Rails. How can I get the same friendliness in a Padrino app?...