Sha256: 4ae28a3aa09d164e3bc221423d95eba170e6099a71d67f39569d522b7e7ed812
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
require 'glimmer-dsl-libui' require_relative '../model/rails_command' module RailsGui module View class MainWindow include Glimmer::LibUI::Application before_body do @rails_command = Model::RailsCommand.instance end body { window('Rails GUI', 1024, 640) { margined true vertical_box { button('Refresh Rails Routes') { stretchy false on_clicked do @rails_routes_table.model_array = @rails_command.routes end } @rails_routes_table = refined_table( model_array: @rails_command.routes, table_columns: { 'Prefix' => :text, 'Verb' => :text, 'URI Pattern' => :text, 'Controller#Action' => :text, 'Format' => :text, }, per_page: 1_000_000_000, # do not paginate ) } } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-gui-0.0.1 | app/rails_gui/view/main_window.rb |