开发者

Error when following RoR Video

开发者 https://www.devze.com 2023-01-05 08:15 出处:网络
I keep getting this error compile error /Users/dean/src/carolian/app/views/layouts/events.html.erb:10: syntax error, unexpected \',\', expecting \')\'

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 开发者_Python百科/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


@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:

 <%= stylesheet_link_tag 'jquery-ui-1.8.2.custom', "application"%>               
 <%= javascript_include_tag (
 "jquery.min",
 "jquery-ui-1.8.2.min", "application") %>

Or

<%= stylesheet_link_tag 'jquery-ui-1.8.2.custom', "application"%>               
<%= javascript_include_tag "jquery.min","jquery-ui-1.8.2.min", "application" %>
0

精彩评论

暂无评论...
验证码 换一张
取 消