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

Active Record Associations - has_many locations #32

Open
StjepanSD opened this issue Oct 6, 2021 · 3 comments
Open

Active Record Associations - has_many locations #32

StjepanSD opened this issue Oct 6, 2021 · 3 comments

Comments

@StjepanSD
Copy link

Hey,

I've noticed the gem doesn't work with has_many relations. I was wondering if there's a way to bypass this or has that not been implemented at all?

e.g.

f.inputs do
   f.has_many :locations do |g|
       g.input :lan
       g.input :lng
       g.lanlng ...
   end
end 

I've tried adding the map directly into the FormBuilder < ::Formtastic::FormBuilder the same way you've added it to the form but I couldn't really get it to work. I tried playing around with the has_many fields a bit but with no success.

Cheers

@forsaken1
Copy link
Owner

@StjepanSD hello! I'll check it 👍

@lyohich812
Copy link

@forsaken1 @StjepanSD any solution for this yet?

@StjepanSD
Copy link
Author

Not that I know of, sorry.

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

3 participants