search for: item_removal

Displaying 2 results from an estimated 2 matches for "item_removal".

2006 Feb 18
3
Easy Newb Question
OK, so I have a link_to_remote. I am too dumb to figure out where I can set a css class or id attribute. <%= link_to_remote("X", :url => { :action => :destroy, :id => message }, :confirm => "Delete ''" + message.title + "''?", :complete => "item_removed(''item_" + message.id.to_s + "'')") %>
2010 Jul 14
1
ActiveRecord::Observer, update_all and has_many
Hi, I''m using an ActiveRecord::Observer to log users changing data in my application. However, I''ve noted that adding an item to a has_many relationship gets logged, but removing the item does not. That is: @product.users << user is logged, but: @product.users.delete(user) is not. I''ve dug into ActiveRecord and found that the underlying issue is that the