Skip to content

Instantly share code, notes, and snippets.

@jtomasrl
Last active December 30, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtomasrl/7896281 to your computer and use it in GitHub Desktop.
Save jtomasrl/7896281 to your computer and use it in GitHub Desktop.
= 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