开发者

Rails ERB: radio_button_tag not generated

I have an ERB that only contains this line:

hello <% radio_button_tag "a", "b" %> world

PROBLEM: Output is only h开发者_开发百科ello world. No radio button is generated.

What could be the problem?


You forget equal sign:

hello <%= radio_button_tag "a", "b" %> world
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜