Ruby on Rails 3表單中的_snowman參數是什麼用的? - What is the _snowman param in Ruby on Rails 3 forms for?

問題:

In Ruby on Rails 3 (currently using Beta 4), I see that when using the form_tag or form_for helpers there is a hidden field named _snowman with the value of ☃ ( Unicode \\x9731) showing up. 在Ruby on Rails 3(目前正在使用Beta 4)中,我看到當使用form_tagform_for助手時,會出現一個名爲_snowman的隱藏字段,其值爲☃( Unicode \\ x9731)。

So, what is this for? 那麼,這是爲了什麼?


解決方案:

參考一: https://en.stackoom.com/question/DWBx
參考二: https://stackoom.com/question/DWBx
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章