Permalink
Browse files

image feed error

  • Loading branch information...
1 parent c803194 commit 37431bc814641fe50e48d815049d5700e3eb0998 @micahbrich committed Nov 25, 2009
Showing with 2 additions and 7 deletions.
  1. +2 −7 app/views/posts/image_feed.rxml
@@ -1,19 +1,14 @@
xml.instruct! :xml, :version=>"1.0"
-xml.rss(:version => "2.0"){
+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.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.description(image_tag(post.image))
xml.author(@author)
xml.pubDate(post.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
xml.link(post_path(post))

0 comments on commit 37431bc

Please sign in to comment.