[Solved] Simple form multiple select


I have solved a first party of my problem,

I have an available beautiful number check:

<%= simple_form_for @sudoku do |f| %>
    <ul>
    <% (1..9).each do |x| %>
    <div class="btn-group" data-toggle="buttons">
    <label class="btn btn-primary">
        <input type="checkbox" name="sudoku[number]" id="optionsCheckboxs<%= x %>" value="<%= x %>" autocomplete="off" >
         <%= x %>
    </label>
    </div>
    <% end %>

but i don’t solved my problem for the multiple selection..

If I add:

name="sudoku[number][]"

I have a this rollback problem:

Processing by SudokusController#create as HTML
Parameters: {“utf8″=>”✓”, “authenticity_token”=>”Cw/……”, “sudoku”=>{“number”=>[“1”]}, “commit”=>”Submit”}
Unpermitted parameters: number

If you have the solution….I am ok!!!!

Thanks

solved Simple form multiple select