FIX: RSS paths render a 404 for missing topics.

This commit is contained in:
Robin Ward 2013-06-07 12:52:12 -04:00
parent 1056b94b56
commit 5217602ec3

View File

@ -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