Skip to content

Commit

Permalink
image feed error
Browse files Browse the repository at this point in the history
  • Loading branch information
micahbrich committed Nov 25, 2009
1 parent c803194 commit 37431bc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/views/posts/image_feed.rxml
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 37431bc

Please sign in to comment.