]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_preference_controller.rb
Replace attr_accessible with strong parameters
[rails.git] / app / controllers / user_preference_controller.rb
index df5f279b8de2699114e8c8b93d2a19a1f92fec2f..059f00bbe38b5a6656ba2d4d5f277bc6498aa872 100644 (file)
@@ -62,7 +62,7 @@ class UserPreferenceController < ApplicationController
       preference.save!
     end
 
-    render :nothing => true, :content_type => "text/plain"
+    render :text => "", :content_type => "text/plain"
   end
 
   ##
@@ -79,7 +79,7 @@ class UserPreferenceController < ApplicationController
     pref.v = request.raw_post.chomp
     pref.save!
 
-    render :nothing => true, :content_type => "text/plain"
+    render :text => "", :content_type => "text/plain"
   end
 
   ##
@@ -87,6 +87,6 @@ class UserPreferenceController < ApplicationController
   def delete_one
     UserPreference.find(@user.id, params[:preference_key]).delete
 
-    render :nothing => true, :content_type => "text/plain"
+    render :text => "", :content_type => "text/plain"
   end
 end