Displaying 2 results from an estimated 2 matches for "toggle_menu".
2006 Sep 18
1
href #
Hello all,
I''ve just upgraded to the latest mongrel and am having a problem with the
following link:
<a href="#" onclick="toggle_menu(''Manage'')">Manage...</a>
I''m now getting a routing error when I click on this link. It''s trying to
route to /Manage. Is there a different syntax I should be using? Btw, I
didn''t have an issue before the upgrade.
System Details:
Mongre...
2006 Feb 19
2
instance variables in components not read by component view?
...display
@display_menu = params[:menu]
render(:layout => false)
end
end
# menu/display.rhtml
<div class="menu">
<% @menus.each do |menu| %>
<%= link_to_remote "#{menu}",:url => { :controller => "sidebar/menu",
:action => ''toggle_menu'', :menu => "#{menu}" } %> <br>
<div id="<%= menu %>_menu" style="display: none">
<%= render_component(:controller => "sidebar/menu", :action =>
"#{menu}_menu") %>
</div>
<% end %>
</div>...