Forum: Ruby on Rails has_and_belongs_to_many and updated_at

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C32b9373f23914f8448630fe28ac928e?d=identicon&s=25 Martin (Guest)
on 2014-01-23 17:47
(Received via mailing list)
Hi there,

When I have a model with

has_and_belongs_to_many :keywords

and a keyword is added or removed, how can I make it to update its
updated_at timestamp?

Thanks,
Martin
Af2ce6689213fdb78913a9662b18da6b?d=identicon&s=25 Rick Lloyd (ricklloyd)
on 2014-01-24 15:55
(Received via mailing list)
On Thursday, January 23, 2014 11:46:03 AM UTC-5, Martin wrote:
>
> Hi there,
>
> When I have a model with
>
> has_and_belongs_to_many :keywords
>
> and a keyword is added or removed, how can I make it to update its
> updated_at timestamp?
>

Hard to say without knowing what "it" you expect to see updated.
This topic is locked and can not be replied to.