You can do this, but if all you need to do is set the parameter without displaying the field, then most likely you will want this hidden field:
<%= f.hidden_field :vote, :value => '1' %>
If you really need a hidden flag (maybe you can additionally display it later using javascript?), You can do it like this:
<%= f.check_box :vote, :checked => true, :style => 'visibility: hidden' %>
John hyland
source share