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 => params[:page], :per_page => 3
@users = User.paginate :page => params[:page], :per_page => 3
respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @users }
end
end

in list.html.erb
<%= will_paginate @users%>

On Thu, Aug 13, 2009 at 4:03 AM, Wap A.
<[email protected]

wrote:

 format.html # index.html.erb
 format.xml  { render :xml => @users }

end
end

in list.html.erb
<%= will_paginate @users%>

Hi, have you taken a look at the following screencast:

http://railscasts.com/episodes/174-pagination-with-ajax

-Conrad

thanks guys i can solve my problem

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs