Rails 3.2;向表单添加单选按钮;生成的HTML是这样的:Rails单选按钮卡在“1”上
<label>
(*) Image for slide-show
<br>
<input checked="checked" id="featured_company_image_source_1" name="featured_company[image_source]" type="radio" value="1" />
Use the Company logo
<br>
<input id="featured_company_image_source_2" name="featured_company[image_source]" type="radio" value="2" />
Select a different image
<div class='clear'></div>
</label>
但单选按钮卡在第一项;当按下鼠标按钮时,点击第二个项目将打开它,然后它会弹回第一个项目。看起来和我们创建的其他单选按钮一样...发生了什么?
感谢@尼科莱......我开始觉得我错过了一些明显的东西。 – JESii