Skip to content

Commit 0aa47b3

Browse files
authored
fix some grammar mistakes (#49)
1 parent 9e008de commit 0aa47b3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rails6/en/chapter04-athentification.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ $ mkdir test/controllers/concerns
321321
$ touch test/controllers/concerns/authenticable_test.rb
322322
----
323323

324-
As usual, we start by writing our tests. In this case, our `current_user` method will search for an user by the authentication token in the HTTP header `Authorization`. The test is quite basic:
324+
As usual, we start by writing our tests. In this case, our `current_user` method will search for a user by the authentication token in the HTTP header `Authorization`. The test is quite basic:
325325

326326
[source,ruby]
327327
.test/controllers/concerns/authenticable_test.rb

rails6/en/chapter06-improve-json.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[#chapter06-improve-json]
22
= Building JSON
33

4-
In the previous chapter we added products to the application and built all the necessary routes. We have also associated a product with an user and restricted some of actions of `products_controller`.
4+
In the previous chapter we added products to the application and built all the necessary routes. We have also associated a product with a user and restricted some of actions of `products_controller`.
55

66
Now you should be satisfied with all this work. But we still have a lot of work to do. Currently we have a JSON output that is not perfect. JSON output looks like this:
77

rails6/en/chapter07-placing-orders.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ git checkout -b chapter07
2525

2626
== Modeling order
2727

28-
If you remember associations model, `Order` model is associated with users and products at the same time. It is actually really simply to achieve this in Rails. The tricky part is when comes to serializing this objects. I'll talk more about this in a next section.
28+
If you remember associations model, `Order` model is associated with users and products at the same time. Actually, It is really simple to achieve this in Rails. The tricky part is when it comes to serializing this object. I'll talk more about this in a next section.
2929

3030
Let’s start by creating the order model with a special form:
3131

rails6/en/chapter09-optimization.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ Now let's make a request with cURL. I remind you we must obtain an authenticatio
551551
$ curl -X POST --data "user[email][email protected]" --data "user[password]=locadex1234" http://localhost:3000/api/v1/tokens
552552
----
553553

554-
NOTE: "[email protected]" corresponds to an user created in my application with the _seed_. In your case, it will probably be different from mine since we used the Faker library.
554+
NOTE: "[email protected]" corresponds to a user created in my application with the _seed_. In your case, it will probably be different from mine since we used the Faker library.
555555

556556
With the help of the token obtained, we can now make a request to access the products
557557

0 commit comments

Comments
 (0)