Skip to content

Instantly share code, notes, and snippets.

@bogardpd
Created September 30, 2019 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogardpd/de3af5d92f85976a1c1602fabcf0bb68 to your computer and use it in GitHub Desktop.
Save bogardpd/de3af5d92f85976a1c1602fabcf0bb68 to your computer and use it in GitHub Desktop.
/app/flights_controller.rb Controller Actions
#/app/flights_controller.rb
def show_flight_gpx
flights = flyer.flights(current_user)
render xml: FlightsMap.new(flights).gpx
end
def show_flight_kml
flights = flyer.flights(current_user)
render xml: FlightsMap.new(flights).kml
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment