Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

image feed error

  • Loading branch information...
commit c8031941c2e93ba4d7e8627170ff90411c6ecf83 1 parent b92b6b4
@micahbrich authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 app/views/posts/image_feed.rxml
View
9 app/views/posts/image_feed.rxml
@@ -1,5 +1,5 @@
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)
@@ -7,8 +7,11 @@ xml.rss(:version => "2.0", "xmlns:media" => 'http://search.yahoo.com/mrss/'){
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)
Please sign in to comment.
Something went wrong with that request. Please try again.