Ruby on rails 3 Rails ERB:未生成单选按钮标签
我有一个ERB,它只包含以下行:Ruby on rails 3 Rails ERB:未生成单选按钮标签,ruby-on-rails-3,erb,Ruby On Rails 3,Erb,我有一个ERB,它只包含以下行: hello <% radio_button_tag "a", "b" %> world 问题:输出只是hello world。不生成单选按钮 可能是什么问题?您忘记了等号: hello <%= radio_button_tag "a", "b" %> world 你忘了等号: hello <%= radio_button_tag "a", "b" %> world
hello <% radio_button_tag "a", "b" %> world
问题:输出只是hello world。不生成单选按钮
可能是什么问题?您忘记了等号:
hello <%= radio_button_tag "a", "b" %> world
你忘了等号:
hello <%= radio_button_tag "a", "b" %> world