On Mar 30, 7:22 am, Ron
<stecklyena...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hi,
>
> I''m trying to generate an xml feed. I have an array of posts
stored
> in an instance variable for this particular action.
>
> I am trying to define the response to an xml request by:
>
> respond_to do |a|
> a.xml {render :xml, @posts.to_xml}
> a.rss {render :action=>''rss.rxml'', :layout=>
false}
> a..atom {render :action=> ''atom.rxml'',
:layout=> false}
> end
that should be render :xml => @posts.xml
Fred> This is under the list action, btw.
>
> When I request that URL, I get:
>
> private method `sub'' called for :xml:Symbol
>
> Any thoughts on what I''m missing?
>
> Thanks,
>
> Ron
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---