title: SubmitForm checked value not posting to page
body: <p>I have a list of check boxes on <code>mypage.html.erb</code>. When I check a box and click the "submit" button, I want the value of what's checked to print on the next page (<code>bookfinal.html.erb</code>). For some reason, the checked value doesn't print? In the console, the checked value appears as '1', so I'm not sure what's missing. As you'll see, I added <code>@checked = "Test"</code> to see if the value would print, and it still doesn't?</p>
  
  <p><strong>mypage.html.erb</strong></p>
  
  <pre><code> &lt;div class="infoheaders"&gt;1. Question
     &lt;%= simple_form_for @category, :url =&gt; url_for(:action =&gt; 'bookfinal', :controller =&gt; 'users'), :method =&gt; 'post' do |f| %&gt;
       &lt;%= f.collection_select(:title, Category.all, :title, :title) %&gt;
       &lt;div class="grey-text-subheader"&gt;Device: (optional)&lt;/div&gt;
       &lt;%= f.check_box :Apple %&gt; &lt;%= f.label "Apple" %&gt; &amp;nbsp; &amp;nbsp; 
       &lt;%= f.check_box :iPhone %&gt; &lt;%= f.label "iPhone" %&gt; &amp;nbsp; &amp;nbsp;  
       &lt;%= f.check_box :iPad %&gt; &lt;%= f.label "iPad" %&gt; &amp;nbsp; &amp;nbsp; 
       &lt;%= f.check_box :Mac %&gt; &lt;%= f.label "Mac" %&gt; &amp;nbsp; &amp;nbsp;  
       &lt;%= f.check_box :Android %&gt; &lt;%= f.label "Android" %&gt;&lt;br&gt;&lt;br&gt;
       &lt;%= f.check_box :Samsung %&gt; &lt;%= f.label "Samsung" %&gt; &amp;nbsp; &amp;nbsp;  
       &lt;%= f.check_box :Microsoft %&gt; &lt;%= f.label "Microsoft" %&gt;&amp;nbsp; &amp;nbsp; 
       &lt;%= f.check_box :Windows %&gt; &lt;%= f.label "Windows" %&gt; &amp;nbsp; &amp;nbsp; 
       &lt;%= f.check_box :Google %&gt; &lt;%= f.label "Google" %&gt; 
       &lt;%= f.button :submit, 'Submit' %&gt;
     &lt;% end %&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p><strong>users_controller.rb</strong></p>
  
  <pre><code>def bookfinal 
    if params[:category][:ipad].present? 
      @checked = params[:category][:ipad] 
    end 
  
    if params[:category][:android].present? 
      @checked = params[:category][:android] 
    end 
    if params[:category][:samsung].present? 
      @checked = params[:category][:samsung] 
    end 
    @checked = "Test" 
  end
  </code></pre>
  
  <p><strong>bookfinal.html.erb</strong></p>
  
  <pre><code>&lt;div&gt;
     The checked value is  &lt;%= @checked %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>routes.rb</strong></p>
  
  <pre><code>Rails.application.routes.draw do
    get 'categories/new'
    get 'sessions/new'
    post 'categories' =&gt; 'categories#create'
    get 'users/edit'
    get 'users/new'
    get 'users/index'
    get 'users/mypage'
    post "users/bookfinal" =&gt; 'users#bookfinal' 
    resources :users
    resources :categories
  </code></pre>
  
  <p><strong>Console</strong></p>
  
  <pre><code>Started POST "/users/bookfinal" for 96.49.105.234 at 2016-02-19 21:18:21 +0000
  Processing by UsersController#bookfinal as HTML
    Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"zaPn5YuBFYr9VwPDSNMeA7tfm74sjM8HZneG+PCX9HEPEH/mb2qgA4xDacI9YDgcjDlFgKCQFFgWnUs5AZB0MA==", "category"=&gt;{"title"=&gt;"Digital Marketing", "Apple"=&gt;"0", "iPhone"=&gt;"0", "iPad"=&gt;"1", "Mac"=&gt;"0", "Android"=&gt;"0", "Samsung"=&gt;"0", "Microsoft"=&gt;"0", "Windows"=&gt;"0", "Google"=&gt;"0"}, "commit"=&gt;"Submit"}
    Rendered users/bookfinal.html.erb within layouts/application (0.6ms)
  Completed 200 OK in 115ms (Views: 113.8ms | ActiveRecord: 0.0ms)
  </code></pre>