]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Split the rest action into sparate read, update and delete actions thus
[rails.git] / app / controllers / user_controller.rb
index b1a37872bd6922a485b080a3dc72caed3ec24219..9972ca3ee6c203dd0d6ea2ac0ca348aef82c611e 100644 (file)
@@ -165,7 +165,7 @@ class UserController < ApplicationController
       @user.save!
       render :nothing => true
     else
-      render :status => 400, :nothing => true
+      render :nothing => true, :status => :method_not_allowed
     end
   end