`has_and_belongs_to_many` support
Opened this issue · 4 comments
m-Peter commented
@kirs there is a has_many :tags, through: :project_tags example. Check this file: https://github.com/rails/activeform/blob/master/test/dummy/app/models/project.rb#L7 . It's corresponding form object is here: https://github.com/rails/activeform/blob/master/test/dummy/app/forms/project_form.rb#L16-L22 .
kirs commented
has_many :tags, through: :project_tags works fine, I mean the built-in Rails has_and_belongs_to_many
m-Peter commented
Probably it's because I haven't found a use-case to test against it. Do you have an example to work on?
kirs commented
I was using activeform in the project with existing codebase and one of relations was habtm. I will try to make it work with activeform.