开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜