From: Tom Hughes Date: Wed, 16 Jan 2008 10:28:57 +0000 (+0000) Subject: Set MIME type correctly for diary RSS feeds. X-Git-Tag: live~7964 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/459e16861a190e4c6df91f74cec6d99bc60cd546 Set MIME type correctly for diary RSS feeds. --- diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 3637ad97d..90e53e778 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -1,6 +1,6 @@ class DiaryEntryController < ApplicationController layout 'site', :except => :rss - + before_filter :authorize_web before_filter :require_user, :only => [:new] @@ -43,5 +43,7 @@ class DiaryEntryController < ApplicationController @description = "Recent diary entries from users of OpenStreetMap" @link = "http://www.openstreetmap.org/diary" end + + render :content_type => Mime::RSS end end