X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/8920a56133d24d328b774ef166a07949746e008a..c555c912047c8d0d23123093a729aa87ca642aee:/app/controllers/user_preference_controller.rb diff --git a/app/controllers/user_preference_controller.rb b/app/controllers/user_preference_controller.rb index bf9bab213..dd4ea8bb1 100644 --- a/app/controllers/user_preference_controller.rb +++ b/app/controllers/user_preference_controller.rb @@ -20,7 +20,7 @@ class UserPreferenceController < ApplicationController end doc.root << el1 - render :text => doc.to_s, :content_type => "text/xml" + render :xml => doc.to_s end ## @@ -28,7 +28,7 @@ class UserPreferenceController < ApplicationController def read_one pref = UserPreference.find([@user.id, params[:preference_key]]) - render :text => pref.v.to_s, :content_type => "text/plain" + render :plain => pref.v.to_s end # update the entire set of preferences @@ -57,7 +57,7 @@ class UserPreferenceController < ApplicationController new_preferences.each_value(&:save!) - render :text => "", :content_type => "text/plain" + render :plain => "" end ## @@ -74,7 +74,7 @@ class UserPreferenceController < ApplicationController pref.v = request.raw_post.chomp pref.save! - render :text => "", :content_type => "text/plain" + render :plain => "" end ## @@ -82,6 +82,6 @@ class UserPreferenceController < ApplicationController def delete_one UserPreference.find([@user.id, params[:preference_key]]).delete - render :text => "", :content_type => "text/plain" + render :plain => "" end end