Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds instruction on how to quit the rails server and console #50

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions part_2_dynamic.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down