Sha256: 58e953b40c04267da57a6218b179de366de6636d6542c72ee6075d7c21fb31b7

Contents?: true

Size: 859 Bytes

Versions: 1

Compression:

Stored size: 859 Bytes

Contents

require 'rexml/document'

# rdoc-image:images/moderngeosystems_logo.png
module BulmaFormRails

  # rdoc-image:../images/moderngeosystems_logo.png
  # 
  # This Ruby on Rails Helper module allows easy and efficient web form construction with labeled fields of different types.
  # It also supports tabular editable multi-object subforms. 
  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-0.9.1 lib/bulma_form_rails/message_box_helpers.rb