Rendering form in slim unexpectedly submits data
<p>I'm trying to render multiple forms in <code>users/new.html.slim</code>. I'm having trouble with my "next" button in the form1, which automatically submits the form to db when I click it. But, it supposed to just render next form.</p>

<pre><code>= simple_form_for @user, html: { class: "profile_form"} do |f|
  = f.fields_for :profile, @user.profile || Profile.new do |p|
    = render 'users/form1', f: f, p: p
  = f.submit
</code></pre>

<p>and this is form1</p>

<pre><code>.form-1
  .form-1-detail
    = f.input :name
    = f.input :email
    = f.input :password, required: true
    = f.input :password_confirmation, required: true
button.next next
</code></pre>

<p>Does anyone know why it's happening? I'm suspecting the indentation is causing it to act weirdly.</p>