Displaying 1 result from an estimated 1 matches for "associated_categori".
Did you mean:
associated_category
2006 Jun 13
1
AJAX based record deletion
...ueCategory.find(params[:id])
product = Product.find(params[:product_id])
product.catalogue_categories.delete(category)
end
I display a list of categories assigned to a product, some of which I
may wish to delete using the link below. The list of categories is
stored in a <div id="associated_categories"><ul><li>...</li></div>
structure.
<%= link_to_remote("Remove Association", :complete => "new
Effect.Fade(''cat#{associated_category.id}'')",
:url => { :action => :destroy_category_association,
:id => as...