RubyonRails html显示额外字符
下面是我为视图编写的html代码RubyonRails html显示额外字符,html,ruby-on-rails-3.1,Html,Ruby On Rails 3.1,下面是我为视图编写的html代码 display_command_list.html.erb <div id="List of commands"> <a href="http://localhost:3000/authorization/check_validity">Click here to make a deployment group </a> <a href="#"> Relational Conncetions</a>
display_command_list.html.erb
<div id="List of commands">
<a href="http://localhost:3000/authorization/check_validity">Click here to make a deployment group </a>
<a href="#"> Relational Conncetions</a>
<a href="#"> To see the workflows that are running</a>
</div>
display\u command\u list.html.erb
这就是我的观点
<Click here to make a deployment group < Relational Conncetions< To see the workflows that are running<
奇怪。。。它似乎呈现正确:--您能编写完整的html.erb文件吗?也许您的问题与此有关。@af12他正在视图中使用其方法中的变量。我没有使用我的方法中的任何东西。我只是在view.html.erb中编写了纯html,其中没有使用来自控制器的变量、标记或任何东西。为了测试,我删除了html.erb文件中的内容,并且视图没有额外的标记'