jejacks0n / navigasmic

Navigasmic: Semantic navigation for Rails using simple view level or configuration definitions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespaces and Links

GreySyntax opened this issue · comments

Im using the following code to generate a link to Admin::BlogsController#new
<%= n.item t('navigation.admin.blog.new'), :link_to => '/admin/blogs/new', :hidden_unless => proc { current_user.try(:admin?) } %>
I have also tried the following:
<%= n.item t('navigation.admin.blog.new'), :link_to => { :controller => '/admin/blogs', :action => 'new' }, :hidden_unless => proc { current_user.try(:admin?) } %>

Both result in the link following html output:

  • New Blog
  • Am i doing something wrong?