title: Render action: edit not re-rendering form in update method of controller
body: <p>When a user successfully updates a record using the edit form, I'd like it to re-render the form with the notice (like the wordpress dashboard does). Right now, when someone successfully updates a page record, the view isn't updated. Here is the update method in my Admin::Page controller:</p>
  
  <pre><code>def update
    @page = Page.find_by_permalink!(params[:id])
    if @page.published? &amp;&amp; @page.published_at == nil
      @page.published_at = Time.now
    elsif !@page.published? &amp;&amp; @page.published_at != nil
      @page.published_at = nil
    end
    if @page.update_attributes(page_params)
      render action: "edit", notice: 'Page was successfully updated.'
    else
      render action: "edit"
    end
  end
  </code></pre>
  
  <p>What should I substitute for render action: "edit"?</p>