I modify my RoR application to calling a create.js.rjs after created an item. I want to reload a specify div in my page after I create an item, how can I do that?
When my div have a ruby object like this:
<div id="categoryList">
<% @categories.each do |category| %>
<%= content_tag(:dt, category.name, :class => "menu-table")%><%= link_to 'X', category, :confirm => 'Are you sure?', :method => :delete %>
<%category.products.each do |product| %>
<%= content_tag(:dd, product.title, :class => "menu-table")%><%= link_to 'X', product, :confirm => 'Are you sure?', :method => :delete %>
<% end %>
<% end %>
</div>
how can I pass the ruby object to this then reload the specific page again?