From 208c7cfe0a268cec79813aaf46617e8175d0440b Mon Sep 17 00:00:00 2001 From: Joren De Groof Date: Sat, 26 Jan 2019 14:49:56 +0100 Subject: [PATCH] Adds instruction on how to quit the rails server and console --- part_2_dynamic.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/part_2_dynamic.md b/part_2_dynamic.md index 8b6218e..783ec03 100644 --- a/part_2_dynamic.md +++ b/part_2_dynamic.md @@ -34,6 +34,8 @@ Once it's started up, you can go visit your app under The page indicates that everything worked fine and the server is running. +You can compare the server with any other computer application you start. This means you also need to stop it when you no longer need it. Do this with the keyboard shortcut `CTRL-C` inside the command line tool + ## The power of Rails: creating a scaffold One (not so secret) weapon of Rails is its ability to quickly get you started using scaffolds. Since we're trying to create blog here, let's put everything into place to create, update and show our blog articles. @@ -283,6 +285,8 @@ Language.create(name: 'ruby') And now have another look at: [http://localhost:3000/languages](http://localhost:3000/languages). What changed? +You can compare the console a bit with the rails server. It is also just an application. If you want to quit the rails console use the keyboard shortcut `CTRL-D` or by typing `exit` and pressing `ENTER`. + # Rubygems Ask the coach "what is a gem?" and be prepared for an interesting lecture about programmer happiness.