apneadiving / Google-Maps-for-Rails

Enables easy Google map + overlays creation in Ruby apps
https://apneadiving.github.io/
MIT License
2.26k stars 382 forks source link

multiple objects (json) #308

Closed christian-froh closed 11 years ago

christian-froh commented 11 years ago

In the controller I would like to try something like this:

@json = User.all.to_gmaps4rails @json << Admin.all.to_gmaps4rails

But thats not gonna work. Is there a standard implementation how to deal with it?

Thanks

apneadiving commented 11 years ago

Please ask questions on stack overflow, this issue tracker is dedicated to bugs. Thanks

On Jan 4, 2013, at 6:48 PM, christianonrails notifications@github.com wrote:

In the controller I would like to try something like this:

@json = User.all.to_gmaps4rails @json << Admin.all.to_gmaps4rails

But thats not gonna work. Is there a standard implementation how to deal with it?

Thanks

— Reply to this email directly or view it on GitHub.

christian-froh commented 11 years ago

Sry, I'll do it. Thanks