You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
516 B

1 year ago
  1. # MainController for basic routes
  2. class MainController < ApplicationController
  3. def home
  4. # flash.now[:notice] = 'this is a notice flash'
  5. logger.info 'efficient logging for dark theme'
  6. @value = 6
  7. end
  8. def about
  9. # flash.now[:alert] = 'this is an alert flash'
  10. logger.debug 'some debugging info'
  11. logger.info 'relevant information'
  12. # logger.info "multiline\nline2\nline3"
  13. logger.warn 'a warning'
  14. # logger.error "an error"
  15. # raise "this is an error"
  16. # sleep 3
  17. end
  18. end