app/helpers/application_helper.rb
# build a json structure a story for the view
build a json structure a story for the view
build a json structure a story for the view
def view_story_from(story)
    {
      lat: story.lat,
      lng: story.lng,
      body: j("#{story.identifier}: #{truncate(story.body, length: 200)}"),
      storyId: story.id
    }
  end
def view_story_from ( story ) { lat : story . lat , lng : story . lng , body : j ( "#{story.identifier}: #{truncate(story.body, length: 200)}" ) , storyId : story . id } end
build a json structure a story for the view
build a json structure a story for the view
story