0
我有以下爲我的導航,但是,index.html.erb#meetflappy被扔了一個錯誤:如何鏈接到另一頁的另一部分?
Routing Error
No route matches [GET] "/preorder/index.html.erb"
我想它,以便當用戶單擊meetflappy標籤,他們被帶到索引頁面,特別是#meetflappy部分。現在,當我在索引頁面上時,它會起作用,它只是鏈接到#meetflappy,但當我在另一頁上時,我在這裏遇到了麻煩。請指教:
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="wrapper-nav">
<div class="navbar-header">
<%= link_to logo, root_path, class: 'brand' %></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li class=""><%= link_to 'Meet Flappy', 'index.html.erb#meetflappy' %></li>
<li class=""><%= link_to 'Details', 'index.html.erb#details' %></li>
<li class=""><%= link_to 'FAQ', faq_path %></li>
<li class=""><%= link_to 'Flappy\'s Story', flappystory_path %></li>
<li class=""><%= link_to 'About Us', about_path %></li>
<li class=""><%= link_to 'Checkout', preorder_checkout_path %></li>
</ul>
</div>
</div>
</nav>