class EndView::Bootstrap::SimpleFormModal

Public Instance Methods

render() click to toggle source
# File lib/end_view/bootstrap/simple_form_modal.rb, line 19
def render
  FormModal.render(id, form_builder, modal_opts) do
    attributes.map { |attribute| form_group(attribute) }.join
  end
end

Private Instance Methods

form_builder() click to toggle source
# File lib/end_view/bootstrap/simple_form_modal.rb, line 27
def form_builder
  @form_builder ||= Form.builder(url_or_record, auth_token, form_opts)
end
form_group(attribute) click to toggle source
# File lib/end_view/bootstrap/simple_form_modal.rb, line 31
def form_group(attribute)
  FormGroup.render(form_builder, attribute)
end