Ajax pagination and RJS

I have view code like(The view is completely inside div
<%= will_paginate @sd_attachments, :remote => {
:url=>{:action=>‘sd_attachment_pagination’,:id=>@sd_ticket} }, :renderer
=> ‘RemoteLinkRenderer’ %>

And in action ‘sd_attachment_pagination’ the code as below

def sd_attachment_pagination

@[email protected]_ticket.service_desk_attachments.display_sd_attachments(params[:page])


And I wrote a corresoponding sd_attachment_pagination.rjs as
page[:view_sd_attachment].replace_html :partial =>

But the div is not replaced.But the data is printed on background and
all.Why the div is not replaced

Thanks in advance

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