projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3bd1f1
)
Set MIME type correctly for diary RSS feeds.
author
Tom Hughes
<tom@compton.nu>
Wed, 16 Jan 2008 10:28:57 +0000
(10:28 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 16 Jan 2008 10:28:57 +0000
(10:28 +0000)
app/controllers/diary_entry_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/diary_entry_controller.rb
b/app/controllers/diary_entry_controller.rb
index 3637ad97dea9c250b0817a8d56825ab97d578c4d..90e53e778d3a5f210c81cc29a6445e2dd0beeaf4 100644
(file)
--- 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