Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

has_and_belongs_to_many support #32

Open
kirs opened this issue Dec 23, 2014 · 4 comments
Open

has_and_belongs_to_many support #32

kirs opened this issue Dec 23, 2014 · 4 comments

Comments

@kirs
Copy link

kirs commented Dec 23, 2014

@m-Peter any ideas why it's not supported yet?

@m-Peter
Copy link

m-Peter commented Dec 23, 2014

@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
Copy link
Author

kirs commented Dec 23, 2014

has_many :tags, through: :project_tags works fine, I mean the built-in Rails has_and_belongs_to_many

@m-Peter
Copy link

m-Peter commented Dec 23, 2014

Probably it's because I haven't found a use-case to test against it. Do you have an example to work on?

@kirs
Copy link
Author

kirs commented Dec 23, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants