Groupings
morganick opened this issue · comments
For the life of me I cannot get the groupings to work. I even pasted your example directly in:
<% semantic_navigation :utility_nav do |n| %>
<%= n.group 'Media' do %>
<%= n.item 'Image Gallery', :link => '/media/images', :highlights_on => '/media/videos' %>
<%= n.item 'Videos', :link => '/media/videos', :disabled_if => proc { true } %>
<%= n.item 'Contact Us' # auto links to the contact_us_path if it exists %>
<% end %>
<% end %>
and I get the following error:
line ##: syntax error, unexpected ')'
....concat(( n.group 'Media' do ).to_s); @output_buffer.concat ...
line ##: syntax error, unexpected kEND, expecting ')'
; end ; @output_buffer.concat "\n\t\t\t\t\t\t "
line ##: syntax error, unexpected kEND, expecting ')'
; end ; @output_buffer.concat "\n\t...
I'm running 2.3.10.
Let me know what I'm missing
-- Nick
It's probably because I updated it to work on rails 3, and didn't attempt to support both. I thought it just would've worked, but I guess not? I'll look into this, but closing for now. I'll update the docs as well, to reflect this. Sorry.