You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rails6/en/chapter01-introduction.adoc
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,22 +129,20 @@ We then install the necessary gems and ignore documentation for each gem:
129
129
[source,bash]
130
130
----
131
131
$ gem install bundler
132
-
$ gem install rails -v 6.0.0.rc1
132
+
$ gem install rails -v 6.0.0
133
133
----
134
134
135
-
NOTE: You may ask yoursel "what does RC1 mean?". RC1 means _Release Candidate_. As I write these lines, the final version for Rails 6.0 is not finished. So I use the he most recent version wich is 6.0.0.rc1
136
-
137
135
Check for everything to be running nice and smooth:
138
136
139
137
[source,bash]
140
138
----
141
139
$ rails -v
142
-
Rails 6.0.0.rc1
140
+
Rails 6.0.0
143
141
----
144
142
145
143
==== Database
146
144
147
-
I highly recommend you installing http://www.postgresql.org/[Postgresql] to manage your databases. But here we’ll using http://www.sqlite.org/[SQlite] for simplicity . If you are using Mac OS you should be ready to go, in case you are on Linux, don’t worry we have you covered:
145
+
I highly recommend you install http://www.postgresql.org/[Postgresql] to manage your databases. But here we’ll be using http://www.sqlite.org/[SQlite] for simplicity . If you are using Mac OS you should be ready to go, in case you are on Linux, don’t worry we have you covered:
148
146
149
147
[source,bash]
150
148
----
@@ -171,7 +169,7 @@ $ cd ~/workspace
171
169
$ rails new market_place_api --api
172
170
----
173
171
174
-
NOTE: The `--api` option appeared in version 5 of Rails. It allows to limit the libraries and _Middleware_ included in the application. This also avoids generating HTML views when using Rails generators.
172
+
NOTE: The `--api` option appeared in version 5 of Rails. It allows you to limit the libraries and _Middleware_ included in the application. This also avoids generating HTML views when using Rails generators.
175
173
176
174
As you may guess, the commands above will generate the bare bones of your Rails application.
177
175
@@ -189,7 +187,7 @@ $ git config --global user.name "Type in your name"
189
187
$ git config --global user.email "Type in your email"
190
188
----
191
189
192
-
Rails also provide a _.gitignore_ file to ignore some files that we don’t want to track. The default _.gitignore_ file should looks like the one shown below:
190
+
Rails also provides a _.gitignore_ file to ignore some files that we don’t want to track. The default _.gitignore_ file should look like the one shown below:
193
191
194
192
..gitignore
195
193
----
@@ -215,15 +213,15 @@ Rails also provide a _.gitignore_ file to ignore some files that we don’t want
215
213
/config/master.key
216
214
----
217
215
218
-
After modifying the _.gitignore_ file we just need adding the files and commiting the changes, commands necessary are shown below:
216
+
After modifying the _.gitignore_ file we just need to add the files and commit the changes, the necessary commands are shown below:
219
217
220
218
[source,bash]
221
219
----
222
220
$ git add .
223
221
$ git commit -m "Initial commit"
224
222
----
225
223
226
-
TIP: I have encounter that committing with a message starting with a present tense verb, describes what the commit does and not what it did, this way when you are exploring the history of the projectit is more natural to read and understand (or at least for me). I’ll follow this practice until the end of the tutorial.
224
+
TIP: I have found that committing a message starting with a present tense verb, describing what the commit does and not what it did, helps when you are exploring the history of the project. I find it is more natural to read and understand. I’ll follow this practice until the end of the tutorial.
227
225
228
226
Lastly and as an optional step we setup the GitHub (I’m not going through that in here) project and push our code to the remote server: We first add the remote:
0 commit comments