Displaying 2 results from an estimated 2 matches for "item_remov".
Did you mean:
item_removed
2006 Feb 18
3
Easy Newb Question
...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 + "'')") %>
Can somebody help? It seems like it should be obvious, but the
documentation doesn''t show any examples that I could find.
--
Posted via http://www.ruby-forum.com/.
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