我试着把https://github.com/peachananr/onepage-scroll加载到我的rails应用程序中,但是它不会加载,它只是显示纯文本。我对rails也很陌生,我还在学习。
这是我试图开始工作的页面的代码。pages#index.html.erb
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Demo</title>
<meta name="author" content="#" />
<meta name="description" content="#" />
<meta name="keywords" content="#" />
<meta name="Resource-type" content="Document" />
<% stylesheet_link_tag 'onepage-scroll' %>
<% javascript_include_tag 'jquery.onepage-scroll.js' %>
</head>
<body>
<div class="main">
<section>
<h3>hello</h3>
</section>
<section>
<h3>hello</h3>
</section>
</div>
</body>
</html>如果有人能帮我,我会非常感激的。谢谢
发布于 2014-03-18 12:35:20
只需添加=
<%= stylesheet_link_tag 'onepage-scroll' %>
<%= javascript_include_tag 'jquery.onepage-scroll.js' %>https://stackoverflow.com/questions/22478750
复制相似问题