title: Rails controller action redirect_to refresh page
body: <p>I want my page to refresh once a record has been created, at the moment it directs it to the page before. here is the code from my controller:</p>
  
  <pre><code>def create
  @license = License.new(params[:license])
  
  respond_to do |format|
    if @license.save
      format.html { redirect_to :controller =&gt; 'customers', :action =&gt; 'index' }
      format.json { render json: @customer, status: :created, location: @customer }
    else
      format.html { render action: "new" }
      format.json { render json: @customer.errors, status: :unprocessable_entity }
    end
  
  end
  </code></pre>
  
  <p>where it says <code>redirect_to</code> i need that to refresh, or link to the current page, with the current id, which would be <code>:controller =&gt; 'customers', :action =&gt; 'show'</code> but with the id of the current page's record. </p>