From 5217602ec3e9874fa003476aafabf315e8e971df Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 7 Jun 2013 12:52:12 -0400 Subject: [PATCH] FIX: RSS paths render a 404 for missing topics. --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index edd94b5625e..7ff472bf4c6 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -284,7 +284,7 @@ class ApplicationController < ActionController::Base @slug = params[:slug].class == String ? params[:slug] : '' @slug = (params[:id].class == String ? params[:id] : '') if @slug.blank? @slug.gsub!('-',' ') - render status: status, layout: 'no_js', template: '/exceptions/not_found' + render status: status, layout: 'no_js', formats: [:html], template: '/exceptions/not_found' end end