DynamicMenus
¶ ↑
This project rocks and uses MIT-LICENSE.
Installation¶ ↑
gem install dynamic_menus
Alter “roubes.rb” to include this in the top within the draw:
DynamicMenus.setup(routes: self)
Create a migration like this:
class CreateDynamicMenu < ActiveRecord::Migration def up DynamicMenus.create_tables end def down DynamicMenus.drop_tables end end
Run db:migrate with this command:
rake db:migrate
Set up your menus by going to:
localhost:3000/dynamic_menus