]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
* Reconstruct option
[rails.git] / app / controllers / user_controller.rb
index bea700331c2eb67f362f4a51d7089546f3b99a10..cee66274f101e8de0e280d24edd68fdbd20d22a0 100644 (file)
@@ -1,5 +1,5 @@
 class UserController < ApplicationController
-  layout 'site'
+  layout 'site', :except => :api_details
 
   before_filter :authorize, :only => [:api_details, :api_gpx_files]
   before_filter :authorize_web, :except => [:api_details, :api_gpx_files]
@@ -245,10 +245,6 @@ class UserController < ApplicationController
     redirect_to :controller => 'user', :action => 'view', :display_name => @user.display_name
   end
 
-  def api_details
-    render :text => @user.to_xml.to_s, :content_type => "text/xml"
-  end
-
   def api_gpx_files
     doc = OSM::API.new.get_xml_doc
     @user.traces.each do |trace|