aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorJonathan Powers <bigblackrobot@gmail.com>2014-06-05 00:25:41 -0500
committerJonathan Powers <bigblackrobot@gmail.com>2014-06-05 00:25:41 -0500
commit4316f2abedf50f7c6bf405935693c63042b75ee6 (patch)
tree25587825fcc4fb28cdd94a7c816a6b79ed5baede /guides
parent92cf133788b2bef729ffeda5ca4c87d3a011e7ba (diff)
downloadrails-4316f2abedf50f7c6bf405935693c63042b75ee6.tar.gz
rails-4316f2abedf50f7c6bf405935693c63042b75ee6.tar.bz2
rails-4316f2abedf50f7c6bf405935693c63042b75ee6.zip
Update getting_started.md
It may be confusing to a Rails newbie why "Article" is suddenly being referred to with the "A" being capitalized. Thus far in the guide, the "a" has always been in lowercase. I think it is helpful to point out the reason for this change (especially since not using the capital "A" will result in an error). [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/getting_started.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index d9619bbc21..83032aca5e 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -739,6 +739,8 @@ database columns. In the first line we do just that (remember that
`@article.save` is responsible for saving the model in the database. Finally,
we redirect the user to the `show` action, which we'll define later.
+TIP: You might be wondering why the `A` in `Article.new` is capitalized above, whereas most other references to articles in this guide have used lowercase. In this context, we are referring to the class named `Article` that is defined in `\models\article.rb`. Class names in Ruby must begin with a capital letter.
+
TIP: As we'll see later, `@article.save` returns a boolean indicating whether
the article was saved or not.