class VenuesController < ApplicationController
def index
@search = Venue.search(params[:search])
@venues = @search.all(:order => "name ASC")
@json = @search.all.to_gmaps4rails do |venue, marker|
marker.infowindow render_to_string(:partial => "info", :locals => { :venue => venue})
end
end
end
質問する
389 次