back out the registration of the gpx mime type, as it didn't seem work
This commit is contained in:
parent
458402813c
commit
3344e60846
2 changed files with 2 additions and 4 deletions
|
@ -52,7 +52,7 @@ class MapBugsController < ApplicationController
|
|||
format.js
|
||||
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.gpx {render :template => 'map_bugs/get_bugs.gpx'}
|
||||
# format.gpx {render :template => 'map_bugs/get_bugs.gpx'}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -146,7 +146,7 @@ class MapBugsController < ApplicationController
|
|||
format.js
|
||||
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.gpx {render :template => 'map_bugs/get_bugs.gpx'}
|
||||
# format.gpx {render :template => 'map_bugs/get_bugs.gpx'}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -100,6 +100,4 @@ Rails::Initializer.run do |config|
|
|||
# Make Active Record use UTC-base instead of local time
|
||||
config.active_record.default_timezone = :utc
|
||||
|
||||
Mime::Type.register "text/xml", :gpx
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue