mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ERB update for AC overview guide
This commit is contained in:
parent
773b2f0c9b
commit
42d3764b3d
1 changed files with 2 additions and 2 deletions
|
@ -492,10 +492,10 @@ The way this is done is to add a non-guessable token which is only known to your
|
|||
If you generate a form like this:
|
||||
|
||||
<ruby>
|
||||
<% form_for @user do |f| -%>
|
||||
<%= form_for @user do |f| %>
|
||||
<%= f.text_field :username %>
|
||||
<%= f.text_field :password -%>
|
||||
<% end -%>
|
||||
<% end %>
|
||||
</ruby>
|
||||
|
||||
You will see how the token gets added as a hidden field:
|
||||
|
|
Loading…
Reference in a new issue