Skip to content

Commit 0a0cd29

Browse files
author
Nils Henning
committed
[TASK][REFACTOR] fix errors in 01 and 02 guides
1 parent c22e152 commit 0a0cd29

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/guides/essential/01_setup.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ class Demo::App < Matestack::Ui::App
272272
nav do
273273
link path: root_path, text: 'First Page'
274274
link path: second_page_path, text: 'Second Page'
275+
end
275276
header do
276277
heading size: 1, text: 'Demo App'
277278
end

docs/guides/essential/02_active_record.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ Rails.application.routes.draw do
7777
end
7878
```
7979

80-
After that we create the corresponding person controller in `app/controllers/person_controller.rb` which will handle the index action. The index action should render the persons index page which we will create afterwards.
80+
After that we create the corresponding person controller in `app/controllers/person_controller.rb` which will handle the index action. The index action should render the persons index page which we will create afterwards. Do not forget to define the `matestack_app` which should be used as a layout.
8181

8282
```ruby
8383
class PersonsController < ApplicationController
84+
matestack_app Demo::App
8485

8586
def index
8687
render Demo::Pages::Persons::Index

0 commit comments

Comments
 (0)