Permalink
Browse files

image feed error

  • Loading branch information...
micahbrich committed Nov 25, 2009
1 parent b92b6b4 commit c8031941c2e93ba4d7e8627170ff90411c6ecf83
Showing with 6 additions and 3 deletions.
  1. +6 −3 app/views/posts/image_feed.rxml
@@ -1,14 +1,17 @@
xml.instruct! :xml, :version=>"1.0"
-xml.rss(:version => "2.0", "xmlns:media" => 'http://search.yahoo.com/mrss/'){
+xml.rss(:version => "2.0"){
xml.channel{
xml.title(@site_name)
xml.link(@site_address)
xml.description(@site_description)
xml.language('en-us')
for post in @posts
xml.item do
- xml.enclosure(:url => "#{post.image}", :type => "image/jpg")
- # xml.media(:content, :type => "image/jpeg", :medium => "image", :url => "#{post.image}", )
+ xml.image do |image|
+ image.title(post.title)
+ image.link(post_path(post))
+ image.url(post.image)
+ end
xml.title(post.title)
xml.description(newline_and_textilize(truncate(post.description, :length => 46)))
xml.author(@author)

0 comments on commit c803194

Please sign in to comment.