X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/8c8d55736f31d91454385990b690d26afafbf6f5..7901811752faea37a9fb0f5f05405a5cfbd63b7e:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 998a636c1..9972ca3ee 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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 @@ -186,11 +186,6 @@ class UserController < ApplicationController @title = @this_user.display_name end - def diary - @this_user = User.find_by_display_name(params[:display_name]) - @title = @this_user.display_name + "'s diary" - end - def make_friend if params[:display_name]