aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/getting_started.md
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2014-06-05 01:35:28 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2014-06-05 01:35:28 -0500
commitb4c021ec1205b33f8cf7a50f87233ef3e40200f6 (patch)
tree3c12f50a61ea4e32bbe07af6386fd0f84dbd996e /guides/source/getting_started.md
parent2071a188f0980a1636898733714c27da305f9eb8 (diff)
parentd99172e450edba77df0990ba758a2a8396f3a4f6 (diff)
downloadrails-b4c021ec1205b33f8cf7a50f87233ef3e40200f6.tar.gz
rails-b4c021ec1205b33f8cf7a50f87233ef3e40200f6.tar.bz2
rails-b4c021ec1205b33f8cf7a50f87233ef3e40200f6.zip
Merge pull request #15518 from jonathancadepowers/master
Added Two Clarification "Tips" [ci skip]
Diffstat (limited to 'guides/source/getting_started.md')
-rw-r--r--guides/source/getting_started.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index d9619bbc21..e088abc150 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -623,6 +623,8 @@ method returns an `ActiveSupport::HashWithIndifferentAccess` object, which
allows you to access the keys of the hash using either strings or symbols. In
this situation, the only parameters that matter are the ones from the form.
+TIP: Ensure you have a firm grasp of the `params` method, as you'll use it fairly regularly. Let's consider an example URL: **http://www.example.com/?username=dhh&email=dhh@email.com**. In this URL, `params[:username]` would equal "dhh" and `params[:email]` would equal "dhh@email.com".
+
If you re-submit the form one more time you'll now no longer get the missing
template error. Instead, you'll see something that looks like the following:
@@ -739,6 +741,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.