aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAfshin Mokhtari <afshinator@hotmail.com>2014-03-13 20:28:02 +0000
committerAfshin Mokhtari <afshinator@hotmail.com>2014-03-13 20:28:02 +0000
commit4d1bc027e138df64841f8af3003cae39fb3b133a (patch)
tree9472d8fe6d89a55ea393bb0e8e174e882ac1c932 /guides
parentb4d4d93d6cf3bb7ced4a923fbe89a835a04c83a6 (diff)
downloadrails-4d1bc027e138df64841f8af3003cae39fb3b133a.tar.gz
rails-4d1bc027e138df64841f8af3003cae39fb3b133a.tar.bz2
rails-4d1bc027e138df64841f8af3003cae39fb3b133a.zip
Fix probs in sections 5.6 and 5.9; [ci skip]
Diffstat (limited to 'guides')
-rw-r--r--guides/source/getting_started.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/getting_started.md b/guides/source/getting_started.md
index 3ef9e04a02..bb8753cb2e 100644
--- a/guides/source/getting_started.md
+++ b/guides/source/getting_started.md
@@ -751,8 +751,8 @@ Rails has several security features that help you write secure applications,
and you're running into one of them now. This one is called
`strong_parameters`, which requires us to tell Rails exactly which parameters
we want to accept in our controllers. In this case, we want to allow the
-`title` and `text` parameters, so change your `create` controller action to
-look like this:
+`title` and `text` parameters, so add the new `article_params` method, and
+change your `create` controller action to use it, like this:
```ruby
def create
@@ -900,7 +900,7 @@ Also add a link in `app/views/articles/new.html.erb`, underneath the form, to
go back to the `index` action:
```erb
-<%= form_for :article do |f| %>
+<%= form_for :article, url: articles_path do |f| %>
...
<% end %>