title: How to get blank checkboxes to pass as false to params
body: <p>I have a form that is an update user form where several of the elements are checkboxes.  I want true to pass to the params if checked (this is working) and false to pass to the params if unchecked (not working).  The unchecked items are not even being sent to the params.  How can i make an unchecked item pass through as false?  </p>
  
  <p>Form</p>
  
  <pre><code>&lt;%= form_tag user_url(@user), class: "form-signin", method: 'patch' do %&gt;
   &lt;h4&gt;Please confirm your email.  We'll only email you if you have notifications.&lt;/h4&gt;
    &lt;%= email_field_tag :email, current_user.email %&gt;
   &lt;h4&gt;Want to be notified when someone needs a player?  Choose which sports below.&lt;/h4&gt;
    &lt;%= check_box_tag :basketball, checked = true %&gt; Basketball&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :indoor_volleyball, checked = true %&gt; Indoor Volleyball&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :beach_volleyball, checked = true %&gt; Beach Volleyball&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :soccer, checked = true %&gt; Soccer&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :flag_football, checked = true %&gt; Flag Football&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :hockey, checked = true %&gt; Hockey&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :kickball, checked = true %&gt; Kickball&lt;/br&gt;&lt;/br&gt;
    &lt;%= check_box_tag :softball, checked = true %&gt; Softball
    &lt;%= hidden_field_tag :user_id, :value =&gt; current_user.id %&gt;
    &lt;%= hidden_field_tag :user, :value =&gt; current_user %&gt;
   &lt;div&gt;
    &lt;/br&gt;
    &lt;%= submit_tag "Submit", class:"btn btn-large btn-success" %&gt;
   &lt;/div&gt;
  </code></pre>
  
     
  
  <p>Controller</p>
  
  <pre><code>  def update
     respond_to do |format|
     if @user.update(update_params)
       format.html { redirect_to @user, notice: 'Updates were successful.' }
       format.json { head :no_content }
      else
       format.html { render action: 'edit' }
       format.json { render json: @user.errors, status: :unprocessable_entity }
      end
     end
    end
  
    def update_params
      params.permit(:email, :soccer, :softball, :beach_volleyball, :indoor_volleyball, :flag_football, :basketball, :hockey, :kickball)
    end
  </code></pre>