# Re: IronRuby + Rails + format.xml

**URL:** <https://www.ruby-forum.com/t/re-ironruby-rails-format-xml/185380>\
**Category:** IronRuby\
**Created:** [March 19, 2010, 1:27am UTC](https://www.ruby-forum.com/t/re-ironruby-rails-format-xml/185380 "2010-03-19T01:27:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [March 19, 2010, 1:27am UTC](https://www.ruby-forum.com/t/re-ironruby-rails-format-xml/185380/1 "2010-03-19T01:27:04Z")

</div>

Have you defined a to\_xml builder method on the object? Also, you may  
need to call to\_xml in the format.xml block. I can’t remember if the  
rails processes for format.xml call to\_xml in the render, or just pass  
it to the view.
