diff options
author | Gosha Arinich <me@goshakkk.name> | 2013-01-07 12:27:19 +0300 |
---|---|---|
committer | Gosha Arinich <me@goshakkk.name> | 2013-01-07 12:27:19 +0300 |
commit | 1907409596b9831e0fac2128b8f6da20b96b2003 (patch) | |
tree | 61136a3913fbccb1c0f8fb7a565d23aea0f6c285 /guides | |
parent | a8d4e2788b977da39f1b8a3ed7fb67fafecbcd0f (diff) | |
download | rails-1907409596b9831e0fac2128b8f6da20b96b2003.tar.gz rails-1907409596b9831e0fac2128b8f6da20b96b2003.tar.bz2 rails-1907409596b9831e0fac2128b8f6da20b96b2003.zip |
more woring improvements to the engines guide
* "also in ... is ..." -> "in .. there is ..."
* use "as well" instead of "also" in the end of the sentence
* "has the ability" -> "can"
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/engines.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/engines.md b/guides/source/engines.md index 40051fb57e..9d279f1090 100644 --- a/guides/source/engines.md +++ b/guides/source/engines.md @@ -171,7 +171,7 @@ end This line mounts the engine at the path `/blorgh`, which will make it accessible through the application only at that path. -Also in the test directory is the `test/integration` directory, where integration tests for the engine should be placed. Other directories can be created in the `test` directory also. For example, you may wish to create a `test/models` directory for your models tests. +In the test directory there is the `test/integration` directory, where integration tests for the engine should be placed. Other directories can be created in the `test` directory as well. For example, you may wish to create a `test/models` directory for your models tests. Providing engine functionality ------------------------------ @@ -288,7 +288,7 @@ Now people will only need to go to the root of the engine to see all the posts, ### Generating a comments resource -Now that the engine has the ability to create new blog posts, it only makes sense to add commenting functionality as well. To do get this, you'll need to generate a comment model, a comment controller and then modify the posts scaffold to display comments and allow people to create new ones. +Now that the engine can to create new blog posts, it only makes sense to add commenting functionality as well. To do get this, you'll need to generate a comment model, a comment controller and then modify the posts scaffold to display comments and allow people to create new ones. Run the model generator and tell it to generate a `Comment` model, with the related table having two columns: a `post_id` integer and `text` text column. |