My knowledge of Ruby on Rails and javascript is rudimentary so please forgive me if this question has a simple answer. I have a website that needs a multi level dropdown menu. I have adapted scriptalculous drop down menu which is working on a test copy of my website using mongrel. There are several pages each with its own layout. When I jump from page to page the drop down menu works fine, but when I go to any "view/show" page only the first level menu works. I suspect that jumping to show loses the javascript somehow. Anybody knows how to solve this problem. In all my layout head I have the following:-
<%= stylesheet_link_tag 'style' %>
<%= javascript_include_tag :defaults %>
<script src="javascripts/prototype.js" type="text/javascript"></script>
<script src="javascripts/scriptaculous.js" type="text/javascript"></script>
<script type='text/javascript' src='javascripts/menu.js'></script>
I am using the protype, controls etc that came with Scriptaculous download.