Class: Models::Index
- Inherits:
-
Views::Base
- Object
- Views::Base
- Models::Index
- Includes:
- Phlex::Rails::Helpers::ContentFor
- Defined in:
- app/views/databasium/models/index.rb
Instance Method Summary collapse
-
#initialize(models:) ⇒ Index
constructor
A new instance of Index.
- #view_template ⇒ Object
Constructor Details
#initialize(models:) ⇒ Index
Returns a new instance of Index.
8 9 10 |
# File 'app/views/databasium/models/index.rb', line 8 def initialize(models:) @models = models end |
Instance Method Details
#view_template ⇒ Object
12 13 14 15 16 |
# File 'app/views/databasium/models/index.rb', line 12 def view_template content_for(:title) { "Models" } div(class: "w-full h-full p-4") { render_models } end |