will-paginate Questions
2
Solved
Context: I have a Rails backend serving as an API to an Angular.JS front-end application.
Task: I want to retrieve all of the records of different species of "dinosaurs" from the Rails backend. Si...
Loera asked 8/10, 2013 at 18:24
2
Solved
I like to localize the "previous" and "next" links in will_paginate, how can I do that?
Did anyone find a nice workaround?
Refinery asked 9/7, 2010 at 9:7
1
Solved
I have a Rails application, and am exposing an API to be used by an Angular front-end. I am using the will-paginate gem for
paging my large dataset. The gem expects a :page to be passed via the par...
Hostile asked 6/2, 2014 at 15:27
3
Solved
The will_paginate gem is broken on my version of Oracle. The default paginate_by_sql method in the WillPaginate module is inserting an extra 'AS' into a query and causing it to fail.
The code itse...
Greasepaint asked 24/2, 2009 at 3:4
2
Solved
This my code in the index controller.
order_customs = Order.select{|order| order.performer.white_label_id==1}
@orders_customs_display=order_customs.paginate(:page => params[:page], :per_page =...
Tahoe asked 4/10, 2013 at 23:51
4
Solved
Pretty sure that I'm missing something really simple here:
I'm trying to display a series of pages that contain instances of two different models - Profiles and Groups. I need them ordering by the...
Cinderellacindi asked 7/7, 2009 at 11:6
2
I've managed to find a workaround to this now. The index action now has an "order" clause before the call to page and the meals are then sorted and grouped by date. The hackey bit next: @total_page...
Neumark asked 18/7, 2012 at 22:51
2
Solved
This is my first attempt using will_paginate (I know! Where have I been??)
titles_controller.erb
def index
@titles = Title.active.sorted.paginate(:page => params[:page])
end
index.html.er...
Infantry asked 25/7, 2013 at 17:52
1
Solved
I get DEPRECATION WARNING: #apply_finder_options is deprecated. when trying this in my user.rb:
def User.search(search, page)
paginate page: page,
per_page: 10,
conditions: ['name LIKE ?', "%#{...
Lefler asked 6/9, 2013 at 22:39
4
Solved
Trying to use will_paginate gem.
My Gem file has:
gem 'will_paginate', '~> 3.0.0'
My orders_controllers.rb:
def index
@orders = Order.all.paginate(:page => params[:page], :per_page =>...
Contortionist asked 10/6, 2013 at 8:41
2
I have a message box using will_paginate.
I have 6 messages showing in 3 pages,
when i delete an item in page_3, it redirect_to page_1, how can i still be in page_3?!
Nervy asked 17/7, 2011 at 13:10
4
Solved
I have this template:
# app/views/posts/index.rabl
collection @posts => :posts
attributes :id, :title, :subject
child(:user) { attributes :full_name }
node(:read) { |post| post.read_by?(@user) ...
Azimuth asked 16/2, 2012 at 15:8
3
Solved
I have some photos that are split on successive pages through will_paginate plugin. When you open a photo and then return to all photos using a link, you always return to the first page (e.g. the p...
Nightstick asked 30/6, 2009 at 18:18
1
Solved
I'm getting duplicate entries in my paginate call.
The code is as follows:
@reviews = @user.reviews.paginate(:page => params[:page], :per_page => 5)
When I run this in the terminal, it returns d...
Enlace asked 25/3, 2013 at 19:56
1
Solved
I get a list of objects from my Rails app, and use will_paginate to page as usual, and then I have a little method used to save details of the search to the database:
per_page=10
session[:search_p...
Omar asked 18/1, 2013 at 15:43
1
Is there anything equivalent to will_paginate for noir/hiccup?
How do people usually paginate with noir/hiccup?
Thank you
Hyaluronidase asked 25/11, 2012 at 13:50
3
Solved
So, when using Sphinx searches are limited to 1000 results. But, if there are more than 1000 results pagination links generated by will_paginate don't take this into account, and provide links to p...
Angelo asked 16/4, 2012 at 11:48
3
Solved
I have installed the last version of will_paginate, and I am trying to use it at my view like this:
@courses = Course.paginate(:page => params[:page])
will_paginate @courses
but, I get nothin...
Doretha asked 16/10, 2011 at 4:8
2
Solved
I am new to rails. I want to display my custom message for page_entries_info. I have gone through following link but cannot understand much. Can anyone please explain in details.
how-do-i-specify-...
Septuagesima asked 1/8, 2012 at 10:54
2
Solved
I've got a custom will_paginate renderer that overrides WillPaginate::ViewHelpers::LinkRenderer's link method like so:
def link(text, target, attributes = {})
"<a href='/users/95/friends_widg...
Aaron asked 26/7, 2011 at 18:12
2
Solved
I'm trying to change the will_paginate links from the format of /list?page=1 to /list/page/1. I have the routes setup right for this, but will_paginate is using the query string in links rather tha...
Timoshenko asked 13/6, 2012 at 20:23
3
Solved
In a Rails 3.2 index view I am rendering two partials.
<%= render :partial => 'users/user', :locals => {:users => @happy_users} %>
<%= render :partial => 'users/user', :locals...
Estell asked 15/5, 2012 at 9:31
2
Solved
I'm using will_paginate to display data returned from a query that includes both a joins and a select statement. When I paginate the data the number of entries is equal to the number of entries bef...
Burdick asked 24/5, 2012 at 15:19
2
Solved
I have a database of movies with attributes. I'd like to return a queried batch of those movies in random order to a template with pagination. I'm using will_paginate. I tried the following:
## Mo...
Cilium asked 28/4, 2012 at 21:29
2
Solved
I'm using will_paginate 2.3.25 with Rails 2.3.11.
I'd like my page_entries_info view helper to say "Displaying all n [my own custom wording]s" instead of auto-generating the item name based on the...
Ballman asked 4/10, 2011 at 20:30
© 2022 - 2024 — McMap. All rights reserved.