Closed alec-c4 closed 9 years ago
There are issue with navbar in layouts under any namespace. For example my routes is:
namespace :admin do get '/' => 'home#index' resources :workplaces end
and i have in my admin-layout following
= nav_bar :static => :top, :brand => 'Test App', :brand_link => root_path do = menu_group do = menu_item 'Home', admin_path = menu_item 'Workspaces', admin_workplaces_path
and i see following in browser:
<ul class="nav navbar-nav "> <li class="active"><a href="/admin">Home</a></li> <li class="active"><a href="/admin/workplaces">Workspaces</a></li> </ul>
As you may see - both LI have active class. How to solve it?
See https://github.com/seyhunak/twitter-bootstrap-rails/blob/master/app/helpers/navbar_helper.rb#L69
There are issue with navbar in layouts under any namespace. For example my routes is:
and i have in my admin-layout following
and i see following in browser:
As you may see - both LI have active class. How to solve it?