Module: BulmaFormRails::MessageBoxHelpers
- Defined in:
- lib/bulma_form_rails/message_box_helpers.rb
Overview
This Ruby on Rails Helper module allows easy and efficient flash and validation error box rendering.
Instance Method Summary collapse
-
#bulma_message_box ⇒ Object
Render a standard flash messages box.
-
#bulma_validation_box(model) ⇒ Object
Render a standard model validation messages box.
Instance Method Details
#bulma_message_box ⇒ Object
Render a standard flash messages box. Automatically included with bulma_validation_box
and bulma_index_header
output.
13 14 15 |
# File 'lib/bulma_form_rails/message_box_helpers.rb', line 13 def render partial: 'bulma_form_rails/message_box' end |
#bulma_validation_box(model) ⇒ Object
Render a standard model validation messages box. Automatically calls bulma_message_box
.
-
model
- the model object
19 20 21 |
# File 'lib/bulma_form_rails/message_box_helpers.rb', line 19 def bulma_validation_box(model) render partial: 'bulma_form_rails/validation_box', locals: {model: model} end |