Hi guys,
Any ideas why my XML doesn''t generate for an RSS feed? I have the
following in rss.html.erb
[code=ruby]xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
xml.title ""
xml.link ""
xml.description ""
xml.language "en-gb"
for word in Word.latest_words
xml.item do
xml.title word.word
xml.pubDate word.date_of_purchase
xml.link word.url
end
end
end
end[/code]
But when I run this page http://localhost:3000/words/rss, rather than
generating xml, the page just displays the code as above.
Any suggestions?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---