Hi
I have view code like(The view is completely inside div
view_sd_attachment)
<%= 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
@sd_ticket=ServiceDeskTicket.find(params[:id])
@sd_attachments=@sd_ticket.service_desk_attachments.display_sd_attachments(params[:page])
end
And I wrote a corresoponding sd_attachment_pagination.rjs as
page[:view_sd_attachment].replace_html :partial =>
''service_desk_part/view_sd_attachment_details''
But the div is not replaced.But the data is printed on background and
all.Why the div is not replaced
Thanks in advance
Sijo
--
Posted via http://www.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
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---