activeadmin-latlng icon indicating copy to clipboard operation
activeadmin-latlng copied to clipboard

Active Record Associations - has_many locations

Open StjepanSD opened this issue 2 years ago • 3 comments

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

StjepanSD avatar Oct 06 '21 12:10 StjepanSD