Method: ModelModalHelper#model_modal_fields
- Defined in:
- app/helpers/model_modal_helper.rb
#model_modal_fields(model, _options = {}) ⇒ Object
152 153 154 155 156 157 158 159 160 |
# File 'app/helpers/model_modal_helper.rb', line 152 def model_modal_fields(model, = {}) content_tag(:table, class: 'center-align') do concat(content_tag(:tbody) do model.class.allowed_param_names.sort.each do |field_name| concat(model_modal_field(model, field_name)) end end) end end |