Class: Views::Lists::Form

Inherits:
Base
  • Object
show all
Includes:
Phlex::Rails::Helpers::FormWith
Defined in:
app/views/lists/form.rb

Direct Known Subclasses

Edit, New

Instance Method Summary collapse

Constructor Details

#initialize(list:) ⇒ Form

Returns a new instance of Form.



6
7
8
# File 'app/views/lists/form.rb', line 6

def initialize(list:)
  @list = list
end

Instance Method Details

#view_template ⇒ Object



10
11
12
13
# File 'app/views/lists/form.rb', line 10

def view_template
  # Using an ERB form otherwise coccooned doesn't work
  render partial("form", list: @list)
end