Generates and edits navigation menus.
Install the gem as usual
gem "katalyst-navigation"
Mount the engine in your routes.rb
file:
mount Katalyst::Navigation::Engine, at: "navigation"
Add the Gem's migrations to your application:
rake katalyst_navigation:install:migrations
Add the Gem's javascript and CSS to your build pipeline. This assumes that
you're using rails-dartsass
and importmaps
to manage your assets.
// app/javascript/controllers/application.js
import { application } from "controllers/application";
import navigation from "@katalyst/navigation";
application.load(navigation);
@use "katalyst/navigation";
See the dummy app for examples.
Bug reports and pull requests are welcome on GitHub at https://github.com/katalyst/navigation.
The gem is available as open source under the terms of the MIT License.