Skip to content

Commit e86d8d2

Browse files
committed
Move Ruby & Rails stuff to own mini-glossary
1 parent 53446ea commit e86d8d2

File tree

4 files changed

+35
-25
lines changed

4 files changed

+35
-25
lines changed

sites/en/installfest/_command-line-glossary.md

-23
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
**==** Boolean, a data type with only 2 possible values: True or False (_Is name=="Veronica"? True_).
88

9-
109
**cd (or cd ~)** Change into your **home directory**.
1110

1211
**cd** _directory_ **(or cd ..)** Change into the parent directory of your current directory.
@@ -25,9 +24,6 @@
2524

2625
**-h (or --help)** Can be run with all commands to list more helpful information.
2726

28-
**puts** _something_ Prints its argument to the console. Can be used in Rails apps to print something in the console where the server is running.
29-
30-
3127
**git branch** Shows you the branch that you're currently in.
3228

3329
**git status** Shows you any pending changes that you've created since your last commit.
@@ -39,22 +35,3 @@
3935
**git commit -m** _"some useful message for your future self"_ Commits all your changes with your descriptive message to git.
4036

4137
**git push origin** <i>remote\_branch\_name</i> This pushes the code in your current branch to the <i>remote\_branch\_name</i> branch on the remote repo named 'origin'.
42-
43-
44-
**rails new** _NameApp_ Creates a new Rails application with the entire Rails directory structure to run your application.
45-
46-
**rails server (or rails s)** Launches a small web server named WEBrick that you will use any time you want to access your application through a web browser.
47-
48-
**rails generate (or rails g)** Uses templates to create a bunch of directories and files in your application.
49-
50-
**rails generate scaffold** Creates a full set of model, database migration for that model, controller to manipulate it, views to view and manipulate the data and a test suite for each of the above.
51-
52-
**rake** Rake is ‘Ruby Make', used to build up a list of tasks.
53-
54-
**rails console (or rails c)** Lets you interact with your Rails application from the command line, useful for testing out quick ideas with code and changing data server-side without touching the website.
55-
56-
**rails console --sandbox** If you wish to test out some code without changing any data.
57-
58-
**rails dbconsole (or rails db)** Used to figure out which database you're using and drops you into whichever command line interface you would use with. It supports MySQL, PostgreSQL, SQLite and SQLite3.
59-
60-
**rails destroy (or rails d)** Does the opposite of generate. It will figure out what generate did and undo it.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
**puts** _something_ Prints its argument to the console. Can be used in Rails apps to print something in the console where the server is running.
2+
3+
**rails new** _NameApp_ Creates a new Rails application with the entire Rails directory structure to run your application.
4+
5+
**rails server (or rails s)** Launches a small web server named WEBrick that you will use any time you want to access your application through a web browser.
6+
7+
**rails generate (or rails g)** Uses templates to create a bunch of directories and files in your application.
8+
9+
**rails generate scaffold** Creates a full set of model, database migration for that model, controller to manipulate it, views to view and manipulate the data and a test suite for each of the above.
10+
11+
**rake** Rake is ‘Ruby Make', used to build up a list of tasks.
12+
13+
**rails console (or rails c)** Lets you interact with your Rails application from the command line, useful for testing out quick ideas with code and changing data server-side without touching the website.
14+
15+
**rails console --sandbox** If you wish to test out some code without changing any data.
16+
17+
**rails dbconsole (or rails db)** Used to figure out which database you're using and drops you into whichever command line interface you would use with. It supports MySQL, PostgreSQL, SQLite and SQLite3.
18+
19+
**rails destroy (or rails d)** Does the opposite of generate. It will figure out what generate did and undo it.

sites/en/installfest/glossary.step

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ h2 "If you are ever stuck trying to make sense of all this alphabet soup - these
22

33
span "Have a look at the "
44
a 'general Glossary', href: '#general-glossary'
5-
span " and the "
5+
span ", the "
66
a 'Command Line Glossary', href: '#command-line-glossary'
7+
span ", and the "
8+
a 'Ruby and Rails Glossary', href: '#ruby-and-rails-glossary'
79
span "."
810

911
a name: 'general-glossary'
@@ -15,3 +17,8 @@ a name: 'command-line-glossary'
1517
situation "Command Line Glossary" do
1618
insert 'command-line-glossary'
1719
end
20+
21+
a name: 'ruby-and-rails-glossary'
22+
situation "Ruby and Rails Glossary" do
23+
insert 'ruby-and-rails-glossary'
24+
end

sites/en/intro-to-rails/glossary.step

+8-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ h2 "If you are ever stuck trying to make sense of all this alphabet soup - these
22

33
span "Have a look at the "
44
a 'general Glossary', href: '#general-glossary'
5-
span " and the "
5+
span ", the "
66
a 'Command Line Glossary', href: '#command-line-glossary'
7+
span ", and the "
8+
a 'Ruby and Rails Glossary', href: '#ruby-and-rails-glossary'
79
span "."
810

911
a name: 'general-glossary'
@@ -15,3 +17,8 @@ a name: 'command-line-glossary'
1517
situation "Command Line Glossary" do
1618
insert '../installfest/command-line-glossary'
1719
end
20+
21+
a name: 'ruby-and-rails-glossary'
22+
situation "Ruby and Rails Glossary" do
23+
insert '../installfest/ruby-and-rails-glossary'
24+
end

0 commit comments

Comments
 (0)