Permalink
Browse files

rails v

  • Loading branch information...
1 parent e60aaf5 commit 7c9d82594458e9a36d2da4e15f4619d9fc135b4c @micahbrich committed Dec 14, 2009
Showing with 26 additions and 3 deletions.
  1. +24 −1 app/views/posts/image_feed.rxml
  2. +2 −2 config/environment.rb
@@ -1 +1,24 @@
-hi
+xml.instruct! :xml, :version=>"1.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.author(@author)
+ xml.pubDate(post.created_at.strftime("%a, %d %b %Y %H:%M:%S %z"))
+ xml.link(post_path(post))
+ xml.guid(post_path(post))
+ end
+ end
+ }
+}
@@ -5,8 +5,8 @@
# ENV['RAILS_ENV'] ||= 'production'
# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION
-#RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
+#RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

0 comments on commit 7c9d825

Please sign in to comment.