back out the registration of the gpx mime type, as it didn't seem work

This commit is contained in:
Kai Krueger 2010-03-14 00:14:35 +00:00
parent 458402813c
commit 3344e60846
2 changed files with 2 additions and 4 deletions

View file

@ -52,7 +52,7 @@ class MapBugsController < ApplicationController
format.js format.js
format.xml {render :template => 'map_bugs/get_bugs.xml'} format.xml {render :template => 'map_bugs/get_bugs.xml'}
format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) } format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) }
format.gpx {render :template => 'map_bugs/get_bugs.gpx'} # format.gpx {render :template => 'map_bugs/get_bugs.gpx'}
end end
end end
@ -146,7 +146,7 @@ class MapBugsController < ApplicationController
format.js format.js
format.xml {render :template => 'map_bugs/get_bugs.xml'} format.xml {render :template => 'map_bugs/get_bugs.xml'}
format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) } format.json { render :json => @bugs.to_json(:methods => [:lat, :lon], :only => [:id, :status, :date_created], :include => { :map_bug_comment => { :only => [:commenter_name, :date_created, :comment]}}) }
format.gpx {render :template => 'map_bugs/get_bugs.gpx'} # format.gpx {render :template => 'map_bugs/get_bugs.gpx'}
end end
end end

View file

@ -100,6 +100,4 @@ Rails::Initializer.run do |config|
# Make Active Record use UTC-base instead of local time # Make Active Record use UTC-base instead of local time
config.active_record.default_timezone = :utc config.active_record.default_timezone = :utc
Mime::Type.register "text/xml", :gpx
end end