Hi,
I installed the will_paginate plugin and i used the coding below:
#controller
def show_tags
@tags = Tag.find(:all,:conditions => [''name LIKE ?'',
''%A'']).paginate(:per_page=>10, :page=>params[:page])
end
View show_tag
<div id="reg_data">
<%= render :partial => ''tags/registry_tags'' %>
</div>
<%=will_paginate @tags ,:params => { :controller =>
''tags'', :action =>
''update_tags''}%>
view tags/registry_tags
<%@tags.each do|tag|%>
<div id="reg_row">
<div id="cbox">
<input type="checkbox">
</div>
<%= tag.name%>
</div>
<%end%>
When i click on the will paginates, "Prev-next-1,2,...", it goes to
the
the controller side
def update_tags
render :update do |page|
page.replace_html
"reg_data",:partial=>"tags/registry_tags"
end
end
My problem is the div is not getting updated, like the way, a
link_to_remote would have worked. I am able to see all the div commands
and the expected data in a simple white screen after the second
pagination click. Am i missing a simple coding here?
Please help !!!
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.