Class: Monolith::RoutesController::Index
- Inherits:
-
View
- Object
- View
- Monolith::RoutesController::Index
- Defined in:
- app/controllers/monolith/routes_controller.rb
Overview
Phlex views
Instance Attribute Summary collapse
-
#routes ⇒ Object
writeonly
Sets the attribute routes.
Instance Method Summary collapse
Instance Attribute Details
#routes=(value) ⇒ Object (writeonly)
Sets the attribute routes
85 86 87 |
# File 'app/controllers/monolith/routes_controller.rb', line 85 def routes=(value) @routes = value end |
Instance Method Details
#view_template ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'app/controllers/monolith/routes_controller.rb', line 87 def view_template div(class: "p-6 space-y-4") do h1(class: "text-2xl font-bold") { "Routes" } p(class: "text-sm") { "#{@routes.size} routes in your Rails application." } Table @routes do it.row("Name") { nav_link it.display_name, controller: "/monolith/routes", action: :show, id: it.to_param } it.row("Verb") { |r| code { r.verb } } it.row("Path") { |r| code { r.path } } it.row("Controller#Action") { it.full_controller_action } end end end |