mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
ERB update for AC overview guide
This commit is contained in:
committed by
Xavier Noria
parent
773b2f0c9b
commit
42d3764b3d
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user