我从我不理解的 Rails 中得到一个奇怪的语法错误。
得到以下错误:
显示 /home/action/workspace/clinio/app/views/tasks/_task.html.erb 其中第 3 行提出:
/home/action/workspace/clinio/app/views/tasks/_task.html.erb:3:语法错误,意外';',期待':'';@output_buffer.append =(图像...... ^
提取的源代码(在第 3 行附近):
<% @uncompletedtasks = @task if @uncompletedtasks?%>
<li id="task_">
<div><%= image_tag "26-mini-gray-checkmark.png" %>
<a href="<%=task_path(@uncompletedtasks)%>"> <%= @uncompletedtasks.task %> </a>
</div>
</li>
模板包含的痕迹:app/views/tasks/_task.html.erb、app/views/layouts/application.html.erb
Rails.root:/home/action/workspace/clinio
应用程序跟踪 | 框架跟踪 | 完整跟踪 app/views/layouts/application.html.erb:35:in _app_views_layouts_application_html_erb__122972711486791642_46610700'
app/controllers/users_controller.rb:16:in
index'