# The main controller for the application. # # NOTE: This controller doesn't inherit from ApplicationController, instead, it # inherits from RuGUI::BaseMainController. Use it only as a starting point. # Commonly it is used only to register global models and controllers, as well as # the main view, but this is entirely up to you. class MainController < RuGUI::BaseMainController # Add your stuff here. on :main_window, 'delete-event' do |widget, event| quit end end