diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b1a3f70..21c3b27 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -69,9 +69,8 @@ def render_error(status) respond_to do |format| format.html { render_html_error_page(status) } - format.all do - render nothing: true, status: status - end + # Anything else returns the status as human readable plain string + format.all { render plain: Rack::Utils::HTTP_STATUS_CODES[status].to_s, status: status } end end diff --git a/app/controllers/search_controller.rb b/app/controllers/search_controller.rb index e4c03cb..ec0ce04 100644 --- a/app/controllers/search_controller.rb +++ b/app/controllers/search_controller.rb @@ -8,7 +8,7 @@ def index create end - # rubocop:disable Metrics/MethodLength, Metrics/PerceivedComplexity + # rubocop:disable Metrics/MethodLength def create @preferences = UserPreferences.new(params)