Module: Railsstrap::Form::CheckBoxHelper
- Includes:
- BaseHelper
- Defined in:
- lib/railsstrap/core_ext/rails/form/check_box_helper.rb
Instance Method Summary collapse
Methods included from Helpers
#alert_box, #aside, #badge, #bootstrap_css, #bootstrap_flash, #bootstrap_js, #bootstrap_theme_css, #button, #button_group, #button_to, #card, #card_group, #cdn, #dropdown, #errors_for, #font_awesome_css, #font_awesome_js, #glyphicon, #horizontal, #icon, #jquery_js, #link_to, #modal, #nav, #navbar, #popper_js, #progress_bar, #render_breadcrumbs, #vertical
Instance Method Details
#check_box(method, options = {}, checked_value = '1', unchecked_value = '0') ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/railsstrap/core_ext/rails/form/check_box_helper.rb', line 8 def check_box(method, = {}, checked_value = '1', unchecked_value = '0') block = -> { super method, , checked_value, unchecked_value } if .delete(:inline_label) { true } check_box_with_inline_label method, , &block else check_box_with_block_label method, , &block end end |