diff options
author | Jonathan Powers <bigblackrobot@gmail.com> | 2014-06-05 00:26:56 -0500 |
---|---|---|
committer | Jonathan Powers <bigblackrobot@gmail.com> | 2014-06-05 00:26:56 -0500 |
commit | d99172e450edba77df0990ba758a2a8396f3a4f6 (patch) | |
tree | 1a8fbd2989a36a68c3da8e7094dc2a20aab390c7 | |
parent | 4316f2abedf50f7c6bf405935693c63042b75ee6 (diff) | |
download | rails-d99172e450edba77df0990ba758a2a8396f3a4f6.tar.gz rails-d99172e450edba77df0990ba758a2a8396f3a4f6.tar.bz2 rails-d99172e450edba77df0990ba758a2a8396f3a4f6.zip |
Update getting_started.md
It's not very clear exactly what the "params" method is and does, as the current description in the guide is somewhat vague and brief. An example is helpful, especially considering this method is referenced over 30 times in this guide. [ci skip]
-rw-r--r-- | guides/source/getting_started.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md index 83032aca5e..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: |