checkbox - Rails check_box data not saving -


i have form check_box method, , when submit form, doesn't save user.(i check using user.all in console) it's separate form sign form, , dont know if necessary, im using devise.

edit heres console :

  parameters: {"utf8"=>"✓", "authenticity_token"=>"lpplw/awlhpdnt4xz7+vuafr2befwnapvdn3w4sroug6jpusk1kg9pv3+cepey2qw50aivhmu/hnkdknwk1l0q==", "user"=>{"html5"=>"1", "css3"=>"1", "ruby"=>"1", "python"=>"1", "javscript"=>"0", "jquery"=>"0", "php"=>"0"}, "commit"=>"submit"}   user load (0.1ms)  select  "users".* "users" "users"."id" = ?  order "users"."id" asc limit 1  [["id", 1]]   rendered dashboard/index.html.erb within layouts/application (5.1ms) completed 200 ok in 153ms (views: 152.0ms | activerecord: 0.1ms) 

edit heres form :

    <%=form_for (:user) |f| %>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :html5%> <%= f.label :html5, "html 5" %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :css3%> <%= f.label :css3, "css 3" %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :ruby%> <%= f.label :ruby %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :python%> <%= f.label :python %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :javscript%> <%= f.label :javascript %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :jquery%> <%= f.label :jquery, "jquery" %>     </div> </div>     <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.check_box :php%> <%= f.label :php, "php" %>     </div> </div> <div class="form-group">     <div class="col-sm-6 col-sm-offset-2">         <%= f.submit "submit", class: 'btn btn-primary' %>     </div> </div> <% end %> 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -