Class: Views::Lists::Form
- Inherits:
-
Base
- Object
- Base
- Views::Lists::Form
- Includes:
- Phlex::Rails::Helpers::FormWith
- Defined in:
- app/views/lists/form.rb
Instance Method Summary collapse
-
#initialize(list:) ⇒ Form
constructor
A new instance of Form.
- #view_template ⇒ Object
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 |