Need advice with a model - should I choose has_many through

Posted by Martin Petrov on Stack Overflow See other posts from Stack Overflow or by Martin Petrov
Published on 2010-12-25T08:49:53Z Indexed on 2010/12/25 8:54 UTC
Read the original article Hit count: 218

Filed under:

I have something like a blog with posts and tags. I want to add email notification functionality - users can subscribe to one or more tags and receive email notifications when new posts are added.

Currently I have a Tag model.

There will be a Subscriber model (containing the user's email)

Do you think I also need a Subscription table where Subscriber and Tag are joined? .. or I can skip it and directly link Subscriber with Tag?

© Stack Overflow or respective owner

Related posts about ruby-on-rails