title: ActionController::BadRequest (Invalid request parameters: expected Array (got Rack::QueryParser::Params) for param `columns')
body: <p>I want a user to be able to check off a column and pick various formats thorough a select tag. This is what it looks like <a href="https://i.stack.imgur.com/EZfkR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EZfkR.png" alt="enter image description here"></a>
  However, when I submit the form I get that error and I can't seem to figure out what is wrong. </p>
  
  <pre><code>= form_tag table_update_columns_path(table), :method =&gt; :post do
  %table.table.table-hover.table-striped.table-bordered.data-table{:style =&gt; "width: 600px;"}
      %tr
          %th Column
          %th Data Type
          %th Format
      - table.get_columns.each do |k,v|
          %tr
              %td.createOrQueryColumns
                  = hidden_field_tag "table[columns][#{k}]", "false"
                  %span= check_box_tag "table[columns][#{k}]", "true", (v == "true" ? true : false)
                  %h6= k
              %td
                  = hidden_field_tag "table[data_types][#{k}]", ""
                  - if table.data_types.nil?
                      = select_tag "table[data_types][#{k}]", options_for_select(Table.data_types), { :class =&gt; 'form-control input-sm' }
                  -else
                      = select_tag "table[data_types][#{k}]", options_for_select(Table.data_types, table.data_types[k]), { :class =&gt; 'form-control input-sm' }
              %td
                  = hidden_field_tag "table[formats][#{k}]", ""
                  - if table.formats.nil?
                      = select_tag "table[formats][#{k}]", options_for_select(Table.formats), { :class =&gt; 'form-control input-sm' }
                  -else
                      = select_tag "table[formats][#{k}]", options_for_select(Table.formats, table.formats[k]), { :class =&gt; 'form-control input-sm' }
  = submit_tag "Save", :class =&gt; "btn form-control btn-primary"
  </code></pre>