在Rails项目中,我使用image_tag来生成我的图像HTML元素。
<%= image_tag("test.jpg", :alt => "test image") %>
产生
<img src="test.jpg" alt="test image">
这发生在我整个Rails项目中。
Is there a setting somewhere that someone else set that is causing this? How can I get rails to always close the image tag?