X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f464e2a6e9679636d6ae8dbe7b3448cc4cab334d..506c0b5f0db8aca79ef61fa45cad508b7167817a:/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