title: Rails after form submitted redirect to empty form page again
body: <p>I'm building a page with a simple contact form. After users submit the form, I'd like it to redirect back to that exact same page and then flash a success message. But the reason I'm not using a show is because I want to have a brand new contact form (not what they already submitted), in case they want to submit another request. However, the redirect_to doesn't appear to be working. </p>
  
  <p>Thanks for the help!</p>
  
  <p>My controller (note I've tried render instead of redirect_to as well)</p>
  
  <pre><code>def create
      @contact= Contact.new(secure_params)
      if @contact.save
        flash[:success] = "Thanks! I'll be in touch soon!"
        redirect_to 'new'
      else
        render 'new'
      end
  end
  </code></pre>
  
  <p>My view</p>
  
  <pre><code>&lt;body&gt;
  &lt;h1&gt; opening text &lt;/h1&gt;
  
  &lt;!--prints success message, making it a hash just in case other messages need to be added in the future --&gt;
  &lt;% flash.each do |key, value| %&gt;
      &lt;div class="alert alert-&lt;%= key %&gt;"&gt;&lt;%= value %&gt;&lt;/div&gt;
  &lt;% end %&gt;
  
  
  &lt;%= form_for @contact do |f| %&gt;
  &lt;!--form code below --&gt;
  </code></pre>