<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,12 @@
 *2.3.0 [Edge]*
 
-* Make ActionController#render(string) work as a shortcut for render :file =&gt; string. [#1435] [Pratik Naik] Examples:
+* Make ActionController#render(string) work as a shortcut for render :file/:template =&gt; string. [#1435] [Pratik Naik] Examples:
 
   # Instead of render(:file =&gt; '/Users/lifo/home.html.erb')
-  render('/Users/lifo/home.html.erb')
+  render('/Users/lifo/home.html.erb') # argument must begin with a '/'
 
-  Note : Filename must begin with a forward slash ('/')
+  # Instead of render(:template =&gt; 'controller/action')
+  render('controller/action') # argument must not begin with a '/', but contain a '/'
 
 * Add :prompt option to date/time select helpers. #561 [Sam Oliver]
 </diff>
      <filename>actionpack/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -866,9 +866,11 @@ module ActionController #:nodoc:
         elsif options == :update
           options = extra_options.merge({ :update =&gt; true })
         elsif options.is_a?(String)
-          case options.index('/')
+          case position = options.index('/')
           when 0
             extra_options[:file] = options
+          else
+            extra_options[:template] = options
           end
 
           options = extra_options</diff>
      <filename>actionpack/lib/action_controller/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -202,6 +202,11 @@ class TestController &lt; ActionController::Base
     render :template =&gt; &quot;test/hello&quot;
   end
 
+  def render_xml_hello_as_string_template
+    @name = &quot;David&quot;
+    render &quot;test/hello&quot;
+  end
+
   def render_xml_with_custom_content_type
     render :xml =&gt; &quot;&lt;blah/&gt;&quot;, :content_type =&gt; &quot;application/atomsvc+xml&quot;
   end
@@ -332,6 +337,10 @@ class TestController &lt; ActionController::Base
     render :template =&gt; &quot;test/hello_world&quot;
   end
 
+  def render_with_explicit_string_template
+    render &quot;test/hello_world&quot;
+  end
+
   def render_with_explicit_template_with_locals
     render :template =&gt; &quot;test/render_file_with_locals&quot;, :locals =&gt; { :secret =&gt; 'area51' }
   end
@@ -654,6 +663,7 @@ class TestController &lt; ActionController::Base
              &quot;accessing_params_in_template&quot;,
              &quot;accessing_params_in_template_with_layout&quot;,
              &quot;render_with_explicit_template&quot;,
+             &quot;render_with_explicit_string_template&quot;,
              &quot;render_js_with_explicit_template&quot;,
              &quot;render_js_with_explicit_action_template&quot;,
              &quot;delete_with_js&quot;, &quot;update_page&quot;, &quot;update_page_with_instance_variables&quot;
@@ -888,6 +898,12 @@ class RenderTest &lt; ActionController::TestCase
     assert_equal &quot;application/xml&quot;, @response.content_type
   end
 
+  def test_render_xml_as_string_template
+    get :render_xml_hello_as_string_template
+    assert_equal &quot;&lt;html&gt;\n  &lt;p&gt;Hello David&lt;/p&gt;\n&lt;p&gt;This is grand!&lt;/p&gt;\n&lt;/html&gt;\n&quot;, @response.body
+    assert_equal &quot;application/xml&quot;, @response.content_type
+  end
+
   def test_render_xml_with_default
     get :greeting
     assert_equal &quot;&lt;p&gt;This is grand!&lt;/p&gt;\n&quot;, @response.body
@@ -1073,6 +1089,11 @@ class RenderTest &lt; ActionController::TestCase
     assert_response :success
   end
 
+  def test_render_with_explicit_string_template
+    get :render_with_explicit_string_template
+    assert_equal &quot;&lt;html&gt;Hello world!&lt;/html&gt;&quot;, @response.body
+  end
+
   def test_double_render
     assert_raises(ActionController::DoubleRenderError) { get :double_render }
   end</diff>
      <filename>actionpack/test/controller/render_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>061952392afd1dae1aa97a816e9a0c79df7c4514</id>
    </parent>
  </parents>
  <author>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/d67e03871eabb912434dafac3eeb8e6ea7c5585f</url>
  <id>d67e03871eabb912434dafac3eeb8e6ea7c5585f</id>
  <committed-date>2008-12-25T14:26:03-08:00</committed-date>
  <authored-date>2008-12-25T14:11:06-08:00</authored-date>
  <message>Make ActionController#render(string) work as a shortcut for render :template =&gt; string. [#1435]

Examples:
  # Instead of render(:template =&gt; 'controller/action')
  render('controller/action')

Note : Argument must not begin with a '/', but have at least one '/'</message>
  <tree>ac7d7092f56c5e5bfe6c690d44bbf5c91fca8c24</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
