Sha256: 0e9b3881b2e269cc8354bf8bc8dfb85fc52a827a7ba8f2a913178653cdaad987

Contents?: true

Size: 503 Bytes

Versions: 7

Compression:

Stored size: 503 Bytes

Contents

Navigasmic.setup do |config|

  config.semantic_navigation :testing do |n|
    n.item 'Home', proc{ root_path }
    n.item 'Site Map', proc{ root_path(format: 'xml') }
    n.item 'Blog', class: 'blog', highlights_on: [{controller: '/blog/posts'}, {controller: '/blog/links'}] do
      n.item 'Articles', controller: '/blog/posts'
      n.item 'Links', '/blog/links'
      n.item 'Specific Article', link: {controller: '/blog/posts', action: 'show', id: '2'}
      n.item 'Not Linked'
    end
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
navigasmic-1.1.0 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.5 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.4 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.3 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.2 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.1 spec/dummy/config/initializers/additional_navigasmic.rb
navigasmic-1.0.0 spec/dummy/config/initializers/additional_navigasmic.rb