Module: ViewComponent::Form::Helpers::Custom

Included in:
Builder
Defined in:
lib/view_component/form/helpers/custom.rb

Instance Method Summary collapse

Instance Method Details

#error_message(method, options = {}) ⇒ Object



7
8
9
# File 'lib/view_component/form/helpers/custom.rb', line 7

def error_message(method, options = {})
  render_component(:error_message, @object_name, method, objectify_options(options))
end

#hint(method, text = nil, options = {}, &block) ⇒ Object



11
12
13
# File 'lib/view_component/form/helpers/custom.rb', line 11

def hint(method, text = nil, options = {}, &block)
  render_component(:hint, @object_name, method, text, objectify_options(options), &block)
end