Rails 5 - sending data from controller to javascript in json format
<p>I want to be able to send an array of object to my Google Maps, so I can display the locations.</p>

<p>What I want to ask is what is the best way to do it?
I was trying to use RABL gem but the tutorials they have are not exactly up to date.</p>

<p>Then I found info about building and API using rails. This seems like a good plan, but I have no idea how to use it. Google is filled with tuts but only for building API-only app, and I already have my app and just want to add an API to it.</p>

<p>Where should I start looking for it? </p>