Disable choices in menus
masterYou can prevent specific items from being selected by providing a :disabled key. This is useful for items that are out of stock or otherwise unavailable. Disabled choices are visually marked with a ✘ character and the reason provided in the :disabled value is displayed next to the choice name.
In an array of hashes:
choices = [
{name: "small", value: 1},
{name: "medium", value: 2, disabled: "(out of stock)"}
]In a DSL block:
menu.choice "medium", 2, disabled: "(out of stock)"