Render a hidden input with the name csrf and the authenticity token as value.
// Default usagereturn ( <Form action="/login" method="post"> <AuthenticityTokenInput /> <input name="email" type="email" /> <input name="password" type="password" /> <button type="submit">Login</button> </Form>); Copy
// Default usagereturn ( <Form action="/login" method="post"> <AuthenticityTokenInput /> <input name="email" type="email" /> <input name="password" type="password" /> <button type="submit">Login</button> </Form>);
// Customizing the name<AuthenticityTokenInput name="authenticity_token" /> Copy
// Customizing the name<AuthenticityTokenInput name="authenticity_token" />
Render a hidden input with the name csrf and the authenticity token as value.