]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/api_details.builder
Wrap GPX API calls with the API error handler, and make sure the create
[rails.git] / app / views / user / api_details.builder
index 656218a92bb8b2d5ede864aa50c118b495e157cb..d70c65f042b924f9fdd1824961d11cc870c0bb98 100644 (file)
@@ -12,9 +12,7 @@ xml.osm("version" => API_VERSION, "generator" => GENERATOR) do
                        :zoom => @user.home_zoom
     end    
     if @user.image
                        :zoom => @user.home_zoom
     end    
     if @user.image
-      # i'd love to use "url_for_file_column, :absolute=>true", but that doesn't seem
-      # to work with the file_column plugin version we're using.
-      xml.tag! "img", :href => ("http://" + SERVER_URL + url_for_file_column(@user, "image"))
+      xml.tag! "img", :href => (url_for_file_column(@user, "image", :absolute => true))
     end
     if @user.languages
       xml.tag! "languages" do
     end
     if @user.languages
       xml.tag! "languages" do