Ruby on Rails Sunday, March 31, 2013

On Sun, Mar 31, 2013 at 5:17 AM, Dmitrij B. <lists@ruby-forum.com> wrote:

I want check, how work in xml format. How me call in command line my
format xml? (format.xml { render :xml => @product.to_xml( :include =>
:order ) })

I guess you want to see what's the output in rails console
Just open it and then do

Product.find(SOME_ID).to_xml

then you'll get the info 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment