Class: InputComponentPreview

Inherits:
ViewComponent::Preview
  • Object
show all
Defined in:
lib/alveole/previews/input_component_preview.rb

Defined Under Namespace

Classes: TempObj

Instance Method Summary collapse

Instance Method Details

#defaultObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/alveole/previews/input_component_preview.rb', line 16

def default
  raise 'not implemented yet'
  # temp_obj = TempObj.new

  # ActionView::Helpers.form_for temp_obj do |form_builder|
  # # form_builder = ActionView::Helpers::FormBuilder.new(:temp_obj, temp_obj, {}, {})

  #   render(InputComponent.new(type: :text,
  #                             label: nil,
  #                             value: nil,
  #                             form: form_builder,
  #                             fieldname: :fieldname,
  #                             collection: nil,
  #                             options: {}))
  # end
end