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%> -- Posted via ruby-forum.com.
On Thu, Aug 13, 2009 at 4:03 AM, Wap Addon <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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: railscasts.com/episodes/174-pagination-with-ajax -Conrad> > -- > Posted via 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
thanks guys i can solve my problem -- Posted via ruby-forum.com.