app/helpers/application_helper.rb
# build the main google map from the given stories
build the main google map from the given stories
build the main google map from the given stories
def init_map_from(stories)
    stories = stories.map { |story| view_story_from(story) }.to_json
    javascript_tag(
      "MapManager.init(#{Rails.configuration.x.lat}, " \
      "#{Rails.configuration.x.lng}, #{stories})"
    )
  end
def init_map_from ( stories ) stories = stories . map { | story | view_story_from ( story ) } . to_json javascript_tag ( "MapManager.init(#{Rails.configuration.x.lat}, " "#{Rails.configuration.x.lng}, #{stories})" ) end
build the main google map from the given stories
build the main google map from the given stories
stories