1
0
Fork 0
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:
James Miller 2010-04-06 16:36:43 -07:00 committed by Xavier Noria
parent 773b2f0c9b
commit 42d3764b3d

View file

@ -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: