]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Update Polatch 2 to 2.3-407-g55bf495 build
[rails.git] / app / controllers / application_controller.rb
index 791334d2df98e0a18c5828c0f17b4ce115ea382a..b512a404dc5a3c7604cd9dffbe4b8018e23f1771 100644 (file)
@@ -399,7 +399,10 @@ class ApplicationController < ActionController::Base
     @title = t "user.no_such_user.title"
     @not_found_user = name
 
-    render :template => "user/no_such_user", :status => :not_found
+    respond_to do |format|
+      format.html { render :template => "user/no_such_user", :status => :not_found }
+      format.all { render :nothing => true, :status => :not_found }
+    end
   end
   
 private