开发者

How do I change the label of a button in formtastic in Rails 3?

开发者 https://www.devze.com 2023-03-01 18:20 出处:网络
I tried the following and got an error: 开发者_运维技巧11= f.buttons, :label => \"Create This\"

I tried the following and got an error:

开发者_运维技巧11     = f.buttons, :label => "Create This"


= f.buttons do
  = f.commit_button "Create This"


Angela, remove the comma before the :label call. Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消