]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Report a friendly error for attempts to reference a user that does
[rails.git] / app / controllers / user_controller.rb
index bd0c143c0ce7f5866bb35c9668e09b3485633263..5d113910d86916f10b44e2b7e33111e7672b9241 100644 (file)
@@ -179,7 +179,8 @@ class UserController < ApplicationController
     if @this_user
       @title = @this_user.display_name
     else
-      render :nothing => true, :status => :not_found
+      @not_found_user = params[:display_name]
+      render :action => 'no_such_user', :status => :not_found
     end
   end