Class: Falqon::Pro::Web::Application
- Inherits:
-
Padrino::Application
- Object
- Padrino::Application
- Falqon::Pro::Web::Application
- Defined in:
- lib/falqon/pro/web/application.rb
Class Attribute Summary collapse
Instance Method Summary collapse
-
#/ ⇒ Object
You can manage errors like:.
-
#public_folder ⇒ Object
Application configuration options.
Class Attribute Details
.uri_root ⇒ Object
80 81 82 |
# File 'lib/falqon/pro/web/application.rb', line 80 def uri_root @uri_root || "/" end |
Instance Method Details
#/ ⇒ Object
You can manage errors like:
error 404 do
render 'errors/404'
end
error 500 do
render 'errors/500'
end
70 71 72 |
# File 'lib/falqon/pro/web/application.rb', line 70 get "/" do redirect uri_root_path("dashboard") end |
#public_folder ⇒ Object
Application configuration options.
set :raise_errors, true # Raise exceptions (will stop application) (default for test) set :dump_errors, true # Exception backtraces are written to STDERR (default for production/development) set :show_exceptions, true # Shows a stack trace in browser (default for development) set :logging, true # Logging in STDOUT for development and file for production (default only for development)
40 |
# File 'lib/falqon/pro/web/application.rb', line 40 set :public_folder, File.join(__dir__, "public") |