Module: ActionView::Helpers::DynamicForm::FormBuilderMethods

Included in:
FormBuilder
Defined in:
lib/action_view/helpers/dynamic_form.rb

Instance Method Summary collapse

Instance Method Details

#error_message_on(method, *args) ⇒ Object



280
281
282
# File 'lib/action_view/helpers/dynamic_form.rb', line 280

def error_message_on(method, *args)
  @template.error_message_on(@object || @object_name, method, *args)
end

#error_messages(options = {}) ⇒ Object



284
285
286
# File 'lib/action_view/helpers/dynamic_form.rb', line 284

def error_messages(options = {})
  @template.error_messages_for(@object_name, objectify_options(options))
end