Class: Maquina::Application::Edit
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- Maquina::Application::Edit
- Includes:
- Maquina::ApplicationView
- Defined in:
- app/views/maquina/application/edit.rb
Instance Method Summary collapse
-
#initialize(resource:) ⇒ Edit
constructor
A new instance of Edit.
- #view_template ⇒ Object
Methods included from Maquina::ApplicationView
#attribute_human_name, #button_to, #image_tag, #link_to, #model_human_name, #svg_icon
Constructor Details
#initialize(resource:) ⇒ Edit
Returns a new instance of Edit.
8 9 10 |
# File 'app/views/maquina/application/edit.rb', line 8 def initialize(resource:) @resource = resource end |
Instance Method Details
#view_template ⇒ Object
12 13 14 |
# File 'app/views/maquina/application/edit.rb', line 12 def view_template render Maquina::Application::Form.new(resource: @resource) end |