forsaken1 / activeadmin-latlng

Active Admin plugin for setting up latitude and longitude
https://rubygems.org/gems/activeadmin_latlng
MIT License
37 stars 19 forks source link

Active Record Associations - has_many locations #32

Open StjepanSD opened 3 years ago

StjepanSD commented 3 years ago

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 commented 3 years ago

@StjepanSD hello! I'll check it 👍

lyohich812 commented 1 year ago

@forsaken1 @StjepanSD any solution for this yet?

StjepanSD commented 1 year ago

Not that I know of, sorry.