Skip to content

Instantly share code, notes, and snippets.

@jtomasrl
Last active Dec 30, 2015
Embed
What would you like to do?
= simple_form_for [@store, @item] do |f|
= f.label :happy_hour
= f.label :happy_hour, "Yes", value: true, style: "display:inline"
= f.radio_button :happy_hour, true, checked: @item.happy_hour
= f.label :happy_hour, "No", value: false, style: "display:inline"
= f.radio_button :happy_hour, false, checked: !@item.happy_hour
= f.submit "Guardar", class: "large button radius"
#<Item _id: 5267c8f167cd8acb5b000004, created_at: 2013-10-23 13:02:42 UTC, updated_at: 2013-12-10 18:54:55 UTC, store_id: "5252fdf424f1e7fbf7000004", happy_hour: "true">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment