I’m getting an interesting problem. I’d trying to generate an RSS
document
and then real it from outside of my app. Here’s what the view looks
like.
xml.instruct! :xml, :version=>“1.0”
xml.rss(:version=>“2.0”){
xml.channel{
xml.title(“mytitle”)
xml.link(“http://www.myapp.com”)
xml.description(“mydescription”)
xml.language(‘en-us’)
for post in @posts
xml.item do
@author = “”#{post.title}" by, #{post.author_name}"
@influence = “Disclosure: #{post.disclosure} [Influence Level:
#{post.influence_level}]”
xml.title(@author)
xml.category(post.influence_level)
xml.description(@influence)
xml.pubDate(post.created_at.rfc2822)
xml.link(post.permalink)
xml.guid(post.permalink)
end
end
}
Here’s the controller.
def rss
@post_pages, @posts = paginate :posts, :per_page => 10, :order =>
‘id
DESC’
render :layout => false
end
When I display the file at /mycontroller/rss I get what appears to be
the
xml
This XML file does not appear to have any style information
associated with it. The document tree is shown below.
â??
â??
But when I try to read it from feedburner it won’t find it, and infact
it
finds this.
This XML file does not appear to have any style information
associated with it. The document tree is shown below.
â??
â??
Application error (Rails)
Does anyone have any suggestions?
View this message in context:
http://www.nabble.com/RSS-XML-Generation-Problem-tf1983528.html#a5444056
Sent from the RubyOnRails Users forum at Nabble.com.