Sha256: 15c277c17b8000e624210eb869b6028f964b891391062dc9963b4b973ec2b6cd
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
require 'rexml/document' module BulmaFormRails # rdoc-image:../images/moderngeosystems_logo.png # # https://moderngeosystems.com # # This Ruby on Rails Helper module allows easy and efficient web form page rendering. module FormPageHelpers # Render a standard model creation form page. # * +name+ - a symbol representing the model name # * +model+ - the model object # * +models_path+ - the controller URL path for the action that renders the model collection def bulma_new_form_page(name, model, models_path) render partial: 'bulma_form_rails/new_form_page', locals: {name: name, model: model, models_path: models_path} end # Render a standard model edit form page. # * +name+ - a symbol representing the model name # * +model+ - the model object # * +models_path+ - the controller URL path for the action that renders the model collection # * +model_path+ - the controller URL path for the action that renders this individual model def bulma_edit_form_page(name, model, models_path, model_path) render partial: 'bulma_form_rails/edit_form_page', locals: {name: name, model: model, models_path: models_path, model_path: model_path} end end end
Version data entries
6 entries across 6 versions & 1 rubygems