Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14378 from afshinator/master

Fix probs in sections 5.6 and 5.9; [ci skip]
  • Loading branch information...
commit 3560d7aad7c9bffc903ec1378c1c1d7c738f5b86 2 parents a0936a1 + 4d1bc02
Godfrey Chan chancancode authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 guides/source/getting_started.md
6 guides/source/getting_started.md
View
@@ -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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.