No route matches [GET] "/public/."该怎么解决
No route matches [GET] /public/....No route matches [GET] /public/js/jquery.min.1.6.4.jsHTML co
No route matches [GET] "/public/...."
No route matches [GET] "/public/js/jquery.min.1.6.4.js"
HTML code<%= javascript_include_tag '/public/js/jquery.min.1.6.4.js'%>
浏览报上边这个错误,无法加载JS文件,不是说public目录下的文件是无route限制么,app/assets下边的也是如些,求解决方法,谢谢。
[解决办法]<%= javascript_include_tag '/public/js/jquery.min.1.6.4.js'%>
改成
<%= javascript_include_tag '/js/jquery.min.1.6.4.js'%>