Displaying 1 result from an estimated 1 matches for "destroy_category_association".
2006 Jun 13
1
AJAX based record deletion
Hi,
New to RoR and I just wanted to check the correct process flow for
this...
I presently have a controller action:
def destroy_category_association
category = CatalogueCategory.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...