Paging error

i want to do paging with ajax

i am using link_to_remote file and than include partial
for ex.
items/index.html.erb
<%link_to_remote(‘items’,update=>‘cont’,:url=>{:action=>:list})%>
list.html.erb this is also in items folder
list.html.erb

<%= render :partial => ‘list’%>

items/_list.html.erb
in this all display record logic
in controler
def list
@items = Item.paginate(:page => params[:page], :per_page => 2)
respond_to do |format|
format.html
format.xml
format.js {
render :update do |page|
page.replace_html ‘mcont’, :partial => ‘list’
end
}
end
end

i can not redirect this way without link_to_remote this is possible
if any idea about it please give me
Thanks

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