
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Simple navigation menus implementation for Rails 3 application with multiple and nesting menus.
Forget fat layouts, views and controllers. This gem will do all the menu staff for you. You simply just have to generate configuration file, fill it with your menu hierarchy and renderer it wherever you want.
Simply and customizable it will make for you all the routins you were spending a lot of time before.
Write the gem dependency in your Gemfile:
gem 'semantic_navigation'
Make the install by bundler
$ bundle install
Generate the config file:
$ rails generate semantic_navigation:install
Configure your navigation in config/initializers/semantic_navigation.rb
:
SemanticNavigation::Configuration.run do
navigate :root_menu do
header :header_item, :name => 'Header'
item :first_item, '#', :name => 'First Item', :ico => :tag
divider
item :second_item, '#', :name => 'Second Item', :ico => :user
end
end
And try to render it in your layout(code in haml):
.well
= navigation_for :root_menu, :as => :bootstrap_list
or
.well
= bootstrap_list_for :root_menu
Render the navigation using the semantic_navigation helper methods and options for them.
For the information of how to configure and render your navigation read the Wiki.
FAQs
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.