<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,13 +1,16 @@
 *2.3.0 [Edge]*
 
-* Make ActionController#render(string) work as a shortcut for render :file/:template =&gt; string. [#1435] [Pratik Naik] Examples:
+* Make ActionController#render(string) work as a shortcut for render :file/:template/:action =&gt; string. [#1435] [Pratik Naik] Examples:
 
-  # Instead of render(:file =&gt; '/Users/lifo/home.html.erb')
-  render('/Users/lifo/home.html.erb') # argument must begin with a '/'
+  # Instead of render(:action =&gt; 'other_action')
+  render('other_action') # argument has no '/'
 
   # Instead of render(:template =&gt; 'controller/action')
   render('controller/action') # argument must not begin with a '/', but contain a '/'
 
+  # Instead of render(:file =&gt; '/Users/lifo/home.html.erb')
+  render('/Users/lifo/home.html.erb') # argument must begin with a '/'
+
 * Add :prompt option to date/time select helpers. #561 [Sam Oliver]
 
 * Fixed that send_file shouldn't set an etag #1578 [Hongli Lai]</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 position = options.index('/')
+          case options.index('/')
           when 0
             extra_options[:file] = options
+          when nil
+            extra_options[:action] = options
           else
             extra_options[:template] = options
           end</diff>
      <filename>actionpack/lib/action_controller/base.rb</filename>
    </modified>
    <modified>
      <diff>@@ -81,6 +81,10 @@ class TestController &lt; ActionController::Base
     render :action =&gt; &quot;hello_world&quot;
   end
 
+  def render_action_hello_world_as_string
+    render &quot;hello_world&quot;
+  end
+
   def render_action_hello_world_with_symbol
     render :action =&gt; :hello_world
   end
@@ -296,6 +300,10 @@ class TestController &lt; ActionController::Base
     render :action =&gt; &quot;hello_world&quot;, :layout =&gt; &quot;standard&quot;
   end
 
+  def layout_test_with_different_layout_and_string_action
+    render &quot;hello_world&quot;, :layout =&gt; &quot;standard&quot;
+  end
+
   def rendering_without_layout
     render :action =&gt; &quot;hello_world&quot;, :layout =&gt; false
   end
@@ -743,6 +751,12 @@ class RenderTest &lt; ActionController::TestCase
     assert_template &quot;test/hello_world&quot;
   end
 
+  def test_render_action_hello_world_as_string
+    get :render_action_hello_world_as_string
+    assert_equal &quot;Hello world!&quot;, @response.body
+    assert_template &quot;test/hello_world&quot;
+  end
+
   def test_render_action_with_symbol
     get :render_action_hello_world_with_symbol
     assert_template &quot;test/hello_world&quot;
@@ -1043,6 +1057,11 @@ class RenderTest &lt; ActionController::TestCase
     assert_equal &quot;&lt;html&gt;Hello world!&lt;/html&gt;&quot;, @response.body
   end
 
+  def test_layout_test_with_different_layout
+    get :layout_test_with_different_layout_and_string_action
+    assert_equal &quot;&lt;html&gt;Hello world!&lt;/html&gt;&quot;, @response.body
+  end
+
   def test_rendering_without_layout
     get :rendering_without_layout
     assert_equal &quot;Hello world!&quot;, @response.body</diff>
      <filename>actionpack/test/controller/render_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d67e03871eabb912434dafac3eeb8e6ea7c5585f</id>
    </parent>
  </parents>
  <author>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/cd1d6e8768ae13b11bc343701037b20ad35e6f1e</url>
  <id>cd1d6e8768ae13b11bc343701037b20ad35e6f1e</id>
  <committed-date>2008-12-25T15:05:34-08:00</committed-date>
  <authored-date>2008-12-25T15:01:17-08:00</authored-date>
  <message>Make ActionController#render(string) work as a shortcut for render :action =&gt; string. [#1435]

Examples:
  # Instead of render(:action =&gt; 'other_action')
  render('other_action')

Note : Argument must not have any '/'</message>
  <tree>b400f930c3ca31a26c41ab0d30c4283dc17b2d79</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
