Module: Charming::Welcome
- Defined in:
- lib/charming/welcome.rb,
lib/charming/welcome/show_view.rb,
lib/charming/welcome/controller.rb
Overview
Welcome is the built-in placeholder screen shown when an application defines no routes yet — the TUI equivalent of Rails' welcome page. It lives in the gem and is never copied into apps: defining any route in config/routes.rb replaces it.
Defined Under Namespace
Classes: Controller, ShowView
Class Method Summary collapse
-
.route ⇒ Object
The fallback route the Runtime uses when the application has no routes.
Class Method Details
.route ⇒ Object
The fallback route the Runtime uses when the application has no routes.
9 10 11 |
# File 'lib/charming/welcome.rb', line 9 def self.route Router::Route.new(path: "/", controller_class: Controller, action: :show, title: "Welcome", params: {}) end |