Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/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