diff options
author | Francesco Rodríguez <lrodriguezsanc@gmail.com> | 2012-06-23 14:22:37 -0700 |
---|---|---|
committer | Francesco Rodríguez <lrodriguezsanc@gmail.com> | 2012-06-23 14:22:37 -0700 |
commit | 956c8e569a3b1fa6f10d7296d6bdb82f3f250e29 (patch) | |
tree | 2c80746fce7f122ad3dde8ea7b1535cf79fbd47d | |
parent | cca9a21a82b13b7c07c69f8033191c7f3de5cd05 (diff) | |
parent | 0c22ac2d60065836c099695b8026bed1d4892898 (diff) | |
download | rails-956c8e569a3b1fa6f10d7296d6bdb82f3f250e29.tar.gz rails-956c8e569a3b1fa6f10d7296d6bdb82f3f250e29.tar.bz2 rails-956c8e569a3b1fa6f10d7296d6bdb82f3f250e29.zip |
Merge pull request #104 from udaykadaboina/typofix
fixed a typo [ci skip]
-rw-r--r-- | guides/source/getting_started.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/getting_started.textile b/guides/source/getting_started.textile index f25e0c0200..a489469a45 100644 --- a/guides/source/getting_started.textile +++ b/guides/source/getting_started.textile @@ -906,7 +906,7 @@ end </ruby> The new method, +update_attributes+, is used when you want to update a record -that already exists, and it accepts an hash containing the attributes +that already exists, and it accepts a hash containing the attributes that you want to update. As before, if there was an error updating the post we want to show the form back to the user. @@ -1191,7 +1191,7 @@ delete "posts/:id" => "posts#destroy" That's a lot to type for covering a single *resource*. Fortunately, Rails provides a +resources+ method which can be used to declare a -standard REST resource. Here's how +config/routes/rb+ looks after the +standard REST resource. Here's how +config/routes.rb+ looks after the cleanup: <ruby> |