Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<%= link_to(image_tag ("Logo.png"), root_url) %>
我在这里做错了什么?我查看了所有相关的 stackoverflow 问题和文档。
只需删除之后的空格image_tag:
image_tag
<%= link_to(image_tag("Logo.png"), root_url) %>
否则 Ruby 假定你想调用
image_tag "Logo.png", root_url