Class: Monolith::TablesController::Index
- Inherits:
-
View
- Object
- View
- Monolith::TablesController::Index
- Defined in:
- app/controllers/monolith/tables_controller.rb
Overview
Phlex views
Instance Attribute Summary collapse
-
#tables ⇒ Object
writeonly
Sets the attribute tables.
Instance Method Summary collapse
Instance Attribute Details
#tables=(value) ⇒ Object (writeonly)
Sets the attribute tables
107 108 109 |
# File 'app/controllers/monolith/tables_controller.rb', line 107 def tables=(value) @tables = value end |
Instance Method Details
#view_template ⇒ Object
109 110 111 112 113 114 115 116 117 118 |
# File 'app/controllers/monolith/tables_controller.rb', line 109 def view_template div(class: "p-6 space-y-4") do h1(class: "text-2xl font-bold") { "Tables" } ul(class: "list-disc pl-6 space-y-1") do @tables.each do |t| li { nav_link t.name, controller: "/monolith/tables", action: :show, id: t.name } end end end end |