Sha256: d27a4497f54c3e9dc8a7fbbd2161cef26410d5d2aa475d4fe613fd10d7a9e84c

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 Bytes

Contents

require 'rexml/document'

module BulmaFormRails

  # rdoc-image:https://github.com/modgeosys/bulma_form_rails/blob/371b651b4cf38336f85378467f15b98b5367049e/doc/images/modgeosys_logo.jpg?raw=true
  # 
  # https://moderngeosystems.com
  # 
  # This Ruby on Rails Helper module allows easy and efficient flash and validation error box rendering.
  module MessageBoxHelpers
    
    # Render a standard flash messages box.  Automatically included with +bulma_validation_box+ and +bulma_index_header+ output.
    def bulma_message_box
      render partial: 'bulma_form_rails/message_box'
    end
  
    # Render a standard model validation messages box.  Automatically calls +bulma_message_box+.
    # * +model+ - the model object
    def bulma_validation_box(model)
      render partial: 'bulma_form_rails/validation_box', locals: {model: model}
    end

  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bulma_form_rails-1.0.3 lib/bulma_form_rails/message_box_helpers.rb