我一直在努力研究网站的基本布局,但每当我在本地服务器上运行应用程序时都会显示以下错误。Hartl rails教程第5章错误
ExecJS::ProgramError in StaticPages#home
Showing E:/workspace/sample_app/app/views/static_pages/home.html.erb where line #13 raised:
TypeError: Object doesn't support this property or method
</div>
<%= link_to image_tag("rails.png", alt: "Rails logo"),
'http://rubyonrails.org/' %>
下面是基于我们的意见文件home.html.erb
<div class="center jumbotron">
<h1>Welcome to the Sample App</h1>
<h2>
This is the home page for the
<a href="http://www.railstutorial.org/">Ruby on Rails Tutorial</a>
sample application.
</h2>
<%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
</div>
<%= link_to image_tag("rails.png", alt: "Rails logo"),
'http://rubyonrails.org/' %>
包含您用于生成此页面/错误的代码。现在这不是一个问题或非常有帮助。 – user3456978
@ user3456978添加了代码。如果您需要其他文件,请告诉我。 – Jatin
你在窗户上吗? – user3456978