
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.