Skip to content

Instantly share code, notes, and snippets.

@azinazadi
Created February 23, 2014 10:54
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 azinazadi/9169900 to your computer and use it in GitHub Desktop.
Save azinazadi/9169900 to your computer and use it in GitHub Desktop.
flat ui checkbox helper for simple_form. use :as => :fui_boolean
class FuiBooleanInput < SimpleForm::Inputs::BooleanInput
self.default_options = {:input_html => {'data-toggle' => "checkbox"}, :inline_label => true, :label => false}
def nested_boolean_style?
true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment