Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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]
  • Loading branch information...
commit 4316f2abedf50f7c6bf405935693c63042b75ee6 1 parent 92cf133
@jonathancadepowers jonathancadepowers authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  guides/source/getting_started.md
View
2  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.
Please sign in to comment.
Something went wrong with that request. Please try again.