Forum: Ruby on Rails has_and_belongs_to_many and updated_at

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.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.