我正在按照RoR 教程进行操作,并且完全按照指示进行操作(或者我认为是这样)。
这是我的 app/views/static_pages/home.html.erb 文件:
<% provide(:title, 'Home') %>
<h1>Sample App</h1>
<p>
This is the home page for the
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a>
sample application.
</p>
<%= link_to "Sign up now!", '#', class: "signup_button round" %>
但是,当我在本地主机上运行它时,我得到了错误:
sample_app/app/views/static_pages/home.html.erb:9:语法错误,意外':' ...到“立即注册!”,'#',类:“signup_button round”);@outp .. .
我不明白我必须改变什么以及为什么。有什么帮助吗?