开发者

Rails ERB: radio_button_tag not generated

开发者 https://www.devze.com 2023-03-22 07:23 出处:网络
I have an ERB that only contains this line: hello <% radio_button_tag \"a\", \"b\" %> world PROBLEM: Output is only h开发者_开发百科elloworld. No radio button is 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

精彩评论

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