Module: RailsBootstrapHelpers::Helpers::FormTagHelper
- Defined in:
- lib/rails-bootstrap-helpers/helpers/form_tag_helper.rb
Instance Method Summary collapse
-
#bs_button_tag(value, type, options = {}) ⇒ Object
Renders a Bootstrap button tag.
Instance Method Details
#bs_button_tag(value, type, options = {}) ⇒ Object
Renders a Bootstrap button tag. This method behaves just as button_tag
but will render a Bootstrap styled button tag instead.
Options
18 19 20 21 |
# File 'lib/rails-bootstrap-helpers/helpers/form_tag_helper.rb', line 18 def (value, type, = {}) = .merge type: type RailsBootstrapHelpers::Renderers::ButtonRenderer.new(self, :button, value, ).render end |