apply [6543] to edge. Closes #5044 [tpope]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6545 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Rick Olson 2007-04-20 21:44:08 +00:00
parent c87d242bf7
commit eb7a3045e3
3 changed files with 6 additions and 2 deletions

@ -1,5 +1,7 @@
*SVN*
* Return the string representation from an Xml Builder when rendering a partial. Closes #5044 [tpope]
* Fixed that parameters from XML should also be presented in a hash with indifferent access [DHH]
* Tweak template format rules so that the ACCEPT header is only used if it's text/javascript. This is so ajax actions without a :format param get recognized as Mime::JS. [Rick]

@ -526,7 +526,8 @@ def create_template_source(extension, template, render_symbol, locals)
when :rxml, :builder
"controller.response.content_type ||= Mime::XML\n" +
"xml = Builder::XmlMarkup.new(:indent => 2)\n" +
template
template +
"\nxml.target!\n"
when :rjs
"controller.response.content_type ||= Mime::JS\n" +
"update_page do |page|\n#{template}\nend"

@ -1,3 +1,4 @@
xml.html do
xml.p "Hello"
end
end
"String return value"