Voom::Presenters.define(:discard_dialog) do dialog id: :discard_dialog do title 'Discard unsaved changes?' actions do button :discard, id: :discard_button button :cancel, type: :raised, id: :cancel_button end end end