Skip to content

Instantly share code, notes, and snippets.

@leviwilson
Last active December 17, 2015 10:28
Show Gist options
  • Save leviwilson/5594459 to your computer and use it in GitHub Desktop.
Save leviwilson/5594459 to your computer and use it in GitHub Desktop.
class AddReserves
include Mohawk
select_list(:appointment_type, :id => 'whatever')
def any_checked?
appointment_type_options.any? &method(:checked?)
end
def checked?(which_type)
adapter.checkbox(:value => which_type).view.set?
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment