Displaying 20 results from an estimated 50000 matches similar to: "problem with will_paginate and ajax"
2009 Aug 19
1
will_paginate with ajax
I tried to delete from a datatable that I represent with will_paginate
and ajax. In the view there are something like that:
<tbody>
<% @items.each do |i| %>
<tr class="<%= cycle("even","odd") %>">
<td><%= i.name %></td>
<td><%= i.quantity %></td>
<td><%= i.price
2009 Aug 17
1
ajax with will_paginate
Hello All
i am calling users/list.html.erb using
<%= link_to_remote("MEMBER LIST",:update => "mcont", :url =>
{:controller => :users, :action => :list }) %>
after that i want to do paging in list file but i doesn''t want to
refresh page so that i want to do ajax + will_paginate.
if any idea about it.......
--
Posted via
2009 Aug 13
2
ajax with will_paginate problem
i can use <%= link_to_remote("MEMBER LIST",:update => "mcont", :url =>
{:controller => :users, :action => :list }) %> this for user listing and
then it display record i want to do paging on this list file but it is
display one page when i click on second page this will no go to second
my controller
def list
#@images = Image.paginate :page =>
2009 Nov 03
2
will_paginate pagination problem
hi;
i use will_paginate the first page come true but all other page get the
same data of first page i checked in controller "page" parameter works
true but paginate get only first page''s data and shows these data in all
pages
forexample first page seen A,B second page also seen A,B but second page
must be C,D
my code is;
controller :
@list = Company::Env.paginate :page =>
2009 Apr 29
1
will_paginate urls and AJAX calls
I am using will_paginate to paginate my site. I also have a
link_to_remote in my view that will toggle view modes (from list to
icon view). My will_paginate code works fine until I click on my
link_to_remote. At that point my will_paginate code (which is in the
partial that is updated in the link_to_remote) is broken.
i.e. the link changes from /documents?page=1 to /documents/toggle_view?
page=1
2010 Jan 20
0
Will_paginate not working with the ajax
Hi,
I am using "will_paginate" for pagination purpose.
I have a partial with name "my_friends", I have a pagination of 25 per
page.
I have added "<%= will_paginate @user_friend} %>" in my partial.
It is working fine. I have a functionality to delete the friend.
So I have usd "link_to_remote" call to delete the friend and I am
updating that partial with
2010 Jul 13
1
will_paginate destroys link_to_remote?!
Hello,
I''ve got a list in a view and each of element of it has a link_to_remote
and everything worked like a charm. Now I added AJAX pagination and the
link_to_remote doesn''t work anymore.
This is the partial of the list:
<% for character in characters %>
<%= character.name %>
<%= link_to_remote t(''.add''), :url =>
2008 Apr 17
1
redbox + will_paginate
Hiya,
I''m trying to use Will_paginate with the RedBox plugin but having
problems making it go to the next page of the collection.
http://blog.craigambrose.com/articles/2006/09/22/redbox-release-2
as far as i can see will_paginate does not support any kind of :remote
ajax call so each page click can update the div element.
has anyone managed to get will_paginate working within a redbox
2009 Nov 01
19
will_paginate vs mislav-will_paginate
I''ve just reinstalled linux (9.10) and am trying to match my gem
environment to our server''s. I''m having a problem with will_paginate.
On the server, under gem list, i have "mislav-will_paginate (2.3.6)".
So, i''m trying to install that locally. Following the instructions on
the will_paginate page, http://wiki.github.com/mislav/will_paginate,
2009 Oct 28
2
mislav-will_paginate(will_paginate)
mislav-will_paginate(will_paginate) doesn''t work after search.
servers_controller.rb
def index
@servers = Server.paginate(:page => params[:page], :per_page => 20,
:order => ''device_id ASC'')
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @servers }
end
end
def search
@servers =
2008 Oct 27
8
pagination in ajax
hi,
I am curently using rails version 2.1.1.
Currently i have done simple pagination using will_paginate
plugin.it works.but when i am trying pagination using ajax
with help of will_paginate plugin
it wont works.i am also using RemoteLinkRenderer helper,
but it gives an error uninitialized constant RemoteLinkRenderer.
can anyone provide any tutorial or sample code so that i can
2008 Apr 22
0
will_paginte and ajax
Hi
Till now we have used the rails pagination and made it ajax
successfully like following in view for both Previous and Next links
(the other pages in between not possible)
<%= link_to_remote(''Previous'', {:url => {:action =>
:show_ci_attachment_page, :ci => @ci.id, :content => ''show'', :page =>
2009 May 05
1
will_paginate problem
Hi all,
I''m having a bit of a problem with displaying a blog list using the
will_paginate helper. My code is:
entries_controller:
def index
@entries = Entry.find(:all)
@blog_entries = @entries.paginate( :page => params[:page], :per_page =>
4,
:include => :user,
:order =>
2008 Nov 27
7
will_paginate issue
Hi,
I am trying paginate (will_paginate) users posts. It is counting and
showing the page links correctly, but still showing all the posts on one
page.
@entries = @user.entries.paginate :per_page => 5, :page =>
params[:page], :order => ''created_at DESC''
If I change it to @entries = Entry.paginate :per_page => 5 ........
It is fine, but I would like to show only
2009 Mar 09
1
will_paginate plugin
hi all,
I am using will_paginate plug_in i am getting URL as
http://localhost:3000/admin/edit#/admin/edit?page=3
but i want it should be
http://localhost:3000/admin/edit?page=3
how can I do it.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2008 Jun 21
15
will_paginate generates undefined method paginate
Dear
I used to use the will_paginate plugin, and now it is no longer
available in the repository.
I am using the one in the gem
#gem install will_paginate
in my controller I have this
@careers = Career.paginate :page => params[:page], :per_page => 10
and in the view
<%= will_paginate @careers %>
I found this way in all the tutorials and the railscasts episode 51.
Though I still
2008 May 19
0
changed to will_paginate
Hi
Till now we used the rails pagination.But now onwards shifting to
will_paginate
The code I use currently is as below .This is with the help of
find_where pluggin..A fantastic pluggin which we still want to use...I
would like to know how can i modify the following code to work with
will_paginate
step 1: set the variables you''ll need
page = (params[:page] ||= 1).to_i
2008 Feb 19
3
will_paginate question
Hi-
Is it possible to use search parameters with will_paginate?
For example, something like this:
@var = Model.paginate :per_page => 20, :page => params[:page],
:order => ''my_date DESC'', :conditions
=>["my_date >= ? AND my_date <=?",@start,@end]
I am getting some errors with this, but will this generally work?
2011 Oct 07
0
will_paginate + RJS error
Hi there!
I need some help, I''m new to rjs + will_paginate and don''t know how
to
solve this problem.
The application apparently is working fine, the partial is rendered
by the javascript, the pagination works fine, but sometimes, when I
hit the next page number or " next >>", it reders the code below.
Im using rails 2.3.8, ruby 1.8.7. and will_paginate 2.3.15
2011 Jan 18
2
install will_paginate 3.0pre2
I''m trying to install will_paginate 3.0pre2. Does''t work. However I can
install path-will_paginate. That is 3.0pre2. Is that the same? What''s
the difference?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to