Я использую гем gmaps4rails, и я хотел бы, чтобы информационное окно для маркера перечисляло все значения в массиве recipes в приведенном ниже коде.
class RecipesController < ApplicationController
include ApplicationHelper
def index
end
def home
@countries = Country.where user_id: current_user.id
@hash = Gmaps4rails.build_markers(@countries) do |country, marker|
recipes = country.recipes
marker.lat country.latitude
marker.lng country.longitude
marker.infowindow # want to list recipes.each here
end
end
end
любая помощь приветствуется.