Skip to content

Commit 0c1778e

Browse files
committed
converted left over yield_page
1 parent 59eca7c commit 0c1778e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/getting-started/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ class TwitterClone::App < Matestack::Ui::App
14671467
def response
14681468
div class: "container" do
14691469
# heading size: 1, text: "Twitter Clone", class: "mb-5"
1470-
# yield_page
1470+
# yield if block_given?
14711471
heading size: 1, text: "Twitter Clone"
14721472
transition path: posts_path do
14731473
button class: "btn btn-light", text: "Timeline"
@@ -1507,7 +1507,7 @@ end
15071507
* [x] Again: see how the page is updated without a full browser page reload, maybe even inspect your browsers network monitor ;\)
15081508
* [x] Post something and enjoy not to enter a username anymore \(use a private tab if you want to act as a different user!\)
15091509

1510-
Great, we just added a second page and added some `transition` components to our app and without further effort, we implemented dynamic page transitions without touching any JavaScript. The `transition` component triggered the app to request the desired page at the server targeting the appropriate controller action through Rails routing and adjusted the DOM where we placed the `yield_page` on our app!
1510+
Great, we just added a second page and added some `transition` components to our app and without further effort, we implemented dynamic page transitions without touching any JavaScript. The `transition` component triggered the app to request the desired page at the server targeting the appropriate controller action through Rails routing and adjusted the DOM where we placed the `yield if block_given?` on our app!
15111511

15121512
And you know what: let's add some CSS animations!
15131513

@@ -1562,7 +1562,7 @@ class TwitterClone::App < Matestack::Ui::App
15621562
button class: "btn btn-light", text: "Your Profile"
15631563
end
15641564
div class: "mt-5" do
1565-
yield_page
1565+
yield if block_given?
15661566
end
15671567
end
15681568
end

0 commit comments

Comments
 (0)