X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5ff9f2d21c82a9ebe06be748a37de764d0861514..0030c7753740820fab12455dd841cd39c58b6475:/app/controllers/note_controller.rb diff --git a/app/controllers/note_controller.rb b/app/controllers/note_controller.rb index c46145045..9c41497d0 100644 --- a/app/controllers/note_controller.rb +++ b/app/controllers/note_controller.rb @@ -48,11 +48,9 @@ class NoteController < ApplicationController # Render the result respond_to do |format| - format.html { render :format => :rjs, :content_type => "text/javascript" } format.rss - format.js format.xml - format.json { render :json => @notes.to_json } + format.json format.gpx end end @@ -200,7 +198,7 @@ class NoteController < ApplicationController respond_to do |format| format.xml format.rss - format.json { render :json => @note.to_json } + format.json format.gpx end end @@ -256,7 +254,7 @@ class NoteController < ApplicationController format.rss { render :action => :list } format.js format.xml { render :action => :list } - format.json { render :json => @notes.to_json } + format.json { render :action => :list } format.gpx { render :action => :list } end end