aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/engines.md
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-06-27 16:50:41 +0200
committerRobin Dupret <robin.dupret@gmail.com>2014-06-27 16:52:04 +0200
commit11ac0cad081eb418dfabe8a427332347beb12a0e (patch)
tree5e7160fd034eb5057b83371ccfa5ed684907d9a5 /guides/source/engines.md
parent2053e1f8da5d214213e060d5ee27ccfd1509d40f (diff)
downloadrails-11ac0cad081eb418dfabe8a427332347beb12a0e.tar.gz
rails-11ac0cad081eb418dfabe8a427332347beb12a0e.tar.bz2
rails-11ac0cad081eb418dfabe8a427332347beb12a0e.zip
Follow-up to #15215 [ci skip]
Diffstat (limited to 'guides/source/engines.md')
-rw-r--r--guides/source/engines.md13
1 files changed, 7 insertions, 6 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md
index 3145733d4c..e630e3d93b 100644
--- a/guides/source/engines.md
+++ b/guides/source/engines.md
@@ -394,7 +394,7 @@ end
```
This helps prevent conflicts with any other engine or application that may have
-a article resource as well.
+an article resource as well.
Finally, the assets for this resource are generated in two files:
`app/assets/javascripts/blorgh/articles.js` and
@@ -506,8 +506,8 @@ NOTE: Because the `has_many` is defined inside a class that is inside the
model for these objects, so there's no need to specify that using the
`:class_name` option here.
-Next, there needs to be a form so that comments can be created on a article. To add
-this, put this line underneath the call to `render @article.comments` in
+Next, there needs to be a form so that comments can be created on an article. To
+add this, put this line underneath the call to `render @article.comments` in
`app/views/blorgh/articles/show.html.erb`:
```erb
@@ -739,9 +739,10 @@ the application. In the case of the `blorgh` engine, making articles and comment
have authors would make a lot of sense.
A typical application might have a `User` class that would be used to represent
-authors for a article or a comment. But there could be a case where the application
-calls this class something different, such as `Person`. For this reason, the
-engine should not hardcode associations specifically for a `User` class.
+authors for an article or a comment. But there could be a case where the
+application calls this class something different, such as `Person`. For this
+reason, the engine should not hardcode associations specifically for a `User`
+class.
To keep it simple in this case, the application will have a class called `User`
that represents the users of the application. It can be generated using this