From bb5a9adb50e8330f8b3af2ccfd5029243573e0a4 Mon Sep 17 00:00:00 2001 From: Charles de Bueger Date: Sun, 1 Jul 2012 23:18:20 +0300 Subject: Prevents rails from looking for a layout for the rss feed. --- app/controllers/refinery/blog/posts_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/controllers/refinery/blog/posts_controller.rb b/app/controllers/refinery/blog/posts_controller.rb index bd579c4..a236267 100644 --- a/app/controllers/refinery/blog/posts_controller.rb +++ b/app/controllers/refinery/blog/posts_controller.rb @@ -15,7 +15,7 @@ module Refinery (@posts = Post.live.includes(:comments, :categories).with_globalize) if request.format.rss? respond_with (@posts) do |format| format.html - format.rss + format.rss { render :layout => false } end end -- cgit v1.2.3