关注 RoR 视频时出错
我不断收到此错误 编译错误 /Users/dean/src/carolian/app/views/layouts/events.html.erb:10:语法错误,意外的“,”,期待“)” /Users/dean/src/carolian/app/views/layouts/events.html.erb:11:语法错误,意外的“,”,期待“)” “jquery-ui-1.8.2.min”,“应用程序”)。to_s); @输出... 我已经关注了这个railscasts 视频,但现在我陷入困境,因为我尝试过的一切都不起作用。我的 Javascript 文件位于 /public/javascripts 中,但它仍然无法工作。这引用的代码行看起来像
<%= stylesheet_link_tag 'jquery-ui-1.8.2.custom', "application"%>
<%= javascript_include_tag
"jquery.min",
"jquery-ui-1.8.2.min", "application"%>
有人知道为什么吗?
提前致谢
院长
I keep getting this error
compile error
/Users/dean/src/carolian/app/views/layouts/events.html.erb:10: syntax error, unexpected ',', expecting ')'
/Users/dean/src/carolian/app/views/layouts/events.html.erb:11: syntax error, unexpected ',', expecting ')'
"jquery-ui-1.8.2.min", "application").to_s); @output...
I have followed this railscasts video and now im stuck as everything i have tried doesn't work. My Javascript files are located in /public/javascripts yet it still doesn't work. The lines of code this refers to look like
<%= stylesheet_link_tag 'jquery-ui-1.8.2.custom', "application"%>
<%= javascript_include_tag
"jquery.min",
"jquery-ui-1.8.2.min", "application"%>
Has anyone got any ideas why?
Thanks in advance
Dean
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
@Dean,我首先想到的是你把它分成了三行。我还没有测试过这个,但我的猜测是尝试以下方法之一:
或者
@Dean, the first thing that jumps out at me is the fact that you have that broken up into three lines. I haven't tested this, but my guess would be to try one of the following:
Or