View Helpers
authenticityTokenField()
Signature
Section titled “Signature”authenticityTokenField() — returns string
Available in: controller
Category: General Form Functions
Description
Section titled “Description”Returns a hidden form field containing a new authenticity token.
Examples
Section titled “Examples”<!--- Needed here because we're not using `startFormTag`. --->
<form action="#urlFor(route='posts')#" method="post">
#authenticityTokenField()#
</form>
<!--- Not needed here because we're not POSTing the form. --->
<form action="#urlFor(route='invoices')#" method="get">
</form>