I'm adding radio buttons to my page. I want the user to be able to pick whether the order gets sent or they pick it up.
I'm having troubles to save the values to the database.
can someone advise me?
<div class="col-md-5 pick-up-buttons" id="country_div">
<li><%= f.radio_button :pick_up, true %></li>
<li><%= f.label :pick_up, "Pick up order in store", :value => "false" %></li>
<li><%= f.radio_button :pick_up, false, :checked => true %></li>
<li><%= f.label :pick_up, "have the order delivered", :value => "true" %></li>
</div>
here is the schema_file
create_table "orders", force: :cascade do |t|
t.string "name"
t.string "email"
t.text "address"
t.string "city"
t.string "country"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.boolean "shipped", default: false
t.string "pick_up"
end