Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ruby-on-rails-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 3 Rails ERB:未生成单选按钮标签_Ruby On Rails 3_Erb - Fatal编程技术网

Ruby on rails 3 Rails 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

我有一个ERB,它只包含以下行:

hello <% radio_button_tag "a", "b" %> world
问题:输出只是hello world。不生成单选按钮

可能是什么问题?

您忘记了等号:

hello <%= radio_button_tag "a", "b" %> world
你忘了等号:

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