title: Submit form is not working
body: <p>I'm trying to build a submit form for my user_info, but I don't know why this action is not working. Any ideas ?</p>
  
  <p>view : </p>
  
  <pre><code>&lt;div class="modal" id="modal_userinfo"&gt;
    &lt;div class="modal-header"&gt;
      &lt;h4&gt;Profil :&lt;/h4&gt;
    &lt;/div&gt;
    &lt;div class="modal-content"&gt;
      &lt;%= simple_form_for(Userinfo.new)  do |f| %&gt;
          &lt;div class="row"&gt;
            &lt;div class="input-field col s6"&gt;
              &lt;%= f.text_field :name, class: "validate" %&gt;
              &lt;label for="last_name"&gt;Nom&lt;/label&gt;
            &lt;/div&gt;
            &lt;div class="input-field col s6"&gt;
              &lt;%= f.text_field :surname, class: "validate" %&gt;
              &lt;label for="last_name"&gt;Prénom&lt;/label&gt;
            &lt;/div&gt;
            &lt;div class="input-field col s6"&gt;
              &lt;i class="material-icons prefix"&gt;account_circle&lt;/i&gt;
              &lt;%= f.text_field :pseudo, class: "validate" %&gt;
              &lt;label for="icon_prefix"&gt;Pseudo&lt;/label&gt;
            &lt;/div&gt;
            &lt;div class="input-field col s6"&gt;
              &lt;i class="material-icons prefix"&gt;phone&lt;/i&gt;
              &lt;%= f.text_field :phone, class: "validate" %&gt;
              &lt;label for="icon_telephone"&gt;Telephone&lt;/label&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;div class="modal-footer"&gt;
        &lt;%= f.button :submit, "Suivant", class: "modal-action waves-effect btn-flat" %&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And my controller : </p>
  
  <pre><code>def create
    @userinfo = Userinfo.new(userinfo_params)
    @userinfo.user = current_user
    respond_to do |format|
      if @userinfo.save
        format.html { redirect_to @userinfo, notice: 'Userinfo was successfully created.' }
        format.json { render :show, status: :created, location: @userinfo }
      else
        format.html { render :new }
        format.json { render json: @userinfo.errors, status: :unprocessable_entity }
      end
    end
  end
  
  private
  
  def userinfo_params
    params.require(:userinfo).permit(:name, :surname, :pseudo, :phone)
  end
  </code></pre>
  
  <p>I don't understand what is wrong into it. I also have some classic routes (ressources userinfo). </p>