marker.infowindowにuserのnameとurlリンクを表示するにはどうしたらよいでしょうか?
アンカーリンクで出したいです。
ruby
1class MapController < ApplicationController 2 def index 3 @users = User.all 4 @hash = Gmaps4rails.build_markers(@users) do |user, marker| 5 marker.lat user.latitude 6 marker.lng user.longitude 7 marker.infowindow user.description 8 marker.json({title: user.title}) 9 end 10 end 11end
あなたの回答
tips
プレビュー