module ActiveDryForm::FormHelper
Public Instance Methods
active_dry_form_for(name, options = {}) { |f| ... }
click to toggle source
# File lib/active_dry_form/form_helper.rb, line 6 def active_dry_form_for(name, options = {}) options[:builder] = ActiveDryForm::Builder options[:html] ||= {} options[:html][:class] = "active-dry-form #{options[:html][:class]}" form_for(name, options) do |f| concat f.show_base_errors yield(f) end end