I'm trying to get this menu to work when my site is in mobile. The menu drops down when you tap the screen but because its a link it reloads the page making the menu only appear for a few short seconds. If I remove the "link_to" tag the menu doesn't work at all, so my question is how do i get this menu to open without using the "link_to" tag and without using JavaScript? is this even possible?
Here is the code
<div id="menu">
<nav id ="nav" role="navigation">
<ul>
<li>
<div class="section group">
<div class="col span_1_of_2">
<p><%= link_to "Menu v", root_url %></p>
</div>
</div>
<ul>
<%= link_to "Home", root_url %>
<% @category = Category.all %>
<% @category.each do |category| %>
<% if category.show_in_header? %>
<li><%= link_to "#{category.name}", content_url(category), :controller => 'categories' %></li>
<% end %>
<% end %>
</ul>
</li>
</ul>
</nav>
</div>
Any help is very much appreciated.