title: rails render action with anchor
body: <p>i have a form with simple_form gem. if i digit the url in the browser with the anchor tag it works:</p>
  
  <pre><code>localhost:3000/contacts/#new_contact #show me the correct form in the page
  </code></pre>
  
  <p>this is my controller:</p>
  
  <pre><code>class ContactsController &lt; ApplicationController
  
    def index
      @message = Contact.new()
    end
  
    def create
  
      @message = Contact.new(msg_params)
      @message.request = request
      if @message.deliver
        redirect_to contacts_path , flash: { success: 'Ok' }
      else
        render action: :index #how can i render the new_contact anchor??
      end
  
    rescue   ScriptError
      redirect_to contacts_path , flash: { error: 'spam' }
    end
  
    private
    def msg_params
      params.require(:contact).permit(:name,:email,:message,:spam)
    end
  end
  </code></pre>
  
  <p>this is my form:</p>
  
  <pre><code>&lt;%= simple_form_for @message, defaults: { label: false} do |f| %&gt;
      &lt;%= f.input :name %&gt;
      &lt;%= f.input :email %&gt;
      &lt;%= f.input :message, :as =&gt; :text,input_html: { rows: 7 } %&gt;
  
      &lt;div class="hidden"&gt;
        &lt;%= f.input :spam, :hint =&gt; 'Leave this field blank!' %&gt;
      &lt;/div&gt;
  
      &lt;%= f.button :submit, 'Send', class: 'btn-block btn-success btn-lg' %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>how can i show the new_contact anchor with the render method?</p>