So, I'm using twitter-bootstrap-rails
and this gem has a nav_bar
helper method that is being loaded automatically. But if I want to use this helper method method in a namespaced view I get the error message undefined method nav_bar
:
# views/admin/shared/_menu.html.erb
<%= nav_bar fixed: :top, brand: 'AdminArea', responsive: true do %>
<%= menu_group do %>
<%= menu_item 'Articles', admin_articles_url %>
<% end %>
<% end %>
So I guess, since the view is being rendered in a namespaced controller the helper method is not being recognized since the helper method is in the "regular" application namespace? How do I fix this?