Module: ViewComponent::Form::Helpers::Custom
- Included in:
- Builder
- Defined in:
- lib/view_component/form/helpers/custom.rb
Instance Method Summary collapse
- #error_message(method, options = {}) ⇒ Object
- #hint(method, text = nil, options = {}, &block) ⇒ Object
Instance Method Details
#error_message(method, options = {}) ⇒ Object
7 8 9 |
# File 'lib/view_component/form/helpers/custom.rb', line 7 def (method, = {}) render_component(:error_message, @object_name, method, ()) 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, = {}, &block) render_component(:hint, @object_name, method, text, (), &block) end |