]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/search_controller.rb
Replace attr_accessible with strong parameters
[rails.git] / app / controllers / search_controller.rb
index 622ebb1ce3736521a9d243cae0cb9bc0c18f0569..dd7c2febe89a48fc8575a8e359a8f0e7ace5ce7b 100644 (file)
@@ -32,13 +32,13 @@ class SearchController < ApplicationController
 
     if do_nodes
       response.headers['Error'] = "Searching of nodes is currently unavailable"
-      render :nothing => true, :status => :service_unavailable
+      render :text => "", :status => :service_unavailable
       return false
     end
 
     unless value
       response.headers['Error'] = "Searching for a key without value is currently unavailable"
-      render :nothing => true, :status => :service_unavailable
+      render :text => "", :status => :service_unavailable
       return false
     end