]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_roles_controller.rb
Use one "no_such_user" view everywhere
[rails.git] / app / controllers / user_roles_controller.rb
index 11a1dc41ee28f5c692f1055276f9482ad6785787..f38ba82ac80e59b1c1c354eb7c728e91552df88e 100644 (file)
@@ -36,8 +36,7 @@ class UserRolesController < ApplicationController
   # ensure that there is a "this_user" instance variable
   def lookup_this_user
     unless @this_user = User.find_by_display_name(params[:display_name])
   # ensure that there is a "this_user" instance variable
   def lookup_this_user
     unless @this_user = User.find_by_display_name(params[:display_name])
-      @not_found_user = params[:display_name]
-      render :template => 'user/no_such_user', :status => :not_found
+      render_unknown_user params[:display_name]
     end
   end
 
     end
   end