I have two models, links and tags, associated through a third, link_tags. The following code is in my Link model.
Associations:
class Link < Acti
Take a look at the line of your code
<% f.fields_for :tags_attributes do |tag_form| %>
You need to use just :tags instead of :tags_attributes.
This will solve your issue
Make sure that You have build links and tags in your controller like
def new
@link = @current_user.links.build
@link.tags.build
end