title: rails render is not working in create action
body: <p>In my controller I coded like this </p>
  
  <pre><code> class CompanyUploadRequestsController &lt; ApiController
    def index
      respond_to do |format|
        format.html { render action: "index" }
      end
    end
  
    def create
      puts params
      respond_to do |format|
        format.html { render action: "index" }
      end
    end
  
    def new
    end
  
  end
  </code></pre>
  
  <p>and in my view <code>new.html.haml</code> file</p>
  
  <pre><code>- page_title("Upload Company")
  %h1 Upload Company
  %hr
  #upload-form
    = simple_form_for(@company_upload, :as =&gt; :company_update, :url =&gt; company_upload_requests_path(@company_upload), :html =&gt; { :class =&gt; 'file-style'}) do |f|
      = f.error_notification
  
      .form-inputs
        = f.input :requestname, :label =&gt; false, :id =&gt; "request_name_input"
        = f.input :file,:as =&gt; :file, :label =&gt; false, :id =&gt; "file_select_input"
  
      .form-actions
        != link_to 'Cancel', company_upload_requests_path, :class =&gt; 'btn'
        = f.button :submit, 'Upload', :class =&gt; 'btn-primary'
  </code></pre>
  
  <p>In my <code>index.html.haml</code> file I have this</p>
  
  <pre><code>- page_title("Upload Company")
  %h1 Company index
  = link_to("Upload File", new_company_upload_request_path, :class =&gt; "btn btn-primary pull-right")
  </code></pre>
  
  <p>The problem is when I click upload button its not render to index page from create</p>
  
  <p>Here I got the log like this</p>
  
  <pre><code>Processing by CompanyUploadRequestsController#create as HTML
    Parameters: {"utf8"=&gt;"?", "authenticity_token"=&gt;"oygIP62E4GHefhN9OnvB3sKhddIb4CN/izfvF5GQtuI=", "company_update"=&gt;{"requestname"=&gt;""}, "commit"=&gt;"Upload"}
    Rendered company_upload_requests/create.html.haml within layouts/application (9.8ms)
  </code></pre>
  
  <p>How can I render to index action and view index file content.</p>