Software Development
Pages
Home
About
Contact
Thursday, July 05, 2007
How to suppress rendering of layout while generating xml in Rails
def my_xml_method
@foo = Foo.find(:all)
render :layout => false
end
If you have render and respond_to in the same method, you will get the dreaded double render error.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment