Understanding the Rails Authenticity Token

前端 未结 10 1036
攒了一身酷
攒了一身酷 2020-11-22 05:55

I am running into some issues regarding the Authenticity Token in Rails, as I have many times now.

But I really don\'t want to just solve this problem and go on. I w

10条回答
  •  长情又很酷
    2020-11-22 06:47

    since Authenticity Token is so important, and in Rails 3.0+ you can use

     <%= token_tag nil %>
    

    to create

    
    

    anywhere

提交回复
热议问题