Posted at

Rails の認証トークンの取得方法

More than 1 year has passed since last update.

ERB

<%= form_authenticity_token %>

とか
<input value="<%= form_authenticity_token %>" type="hidden">

slim

= form_authenticity_token 

とか
input value="#{form_authenticity_token}" type="hidden"

以上