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%>

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%>

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