|
|
@ -1,18 +1,22 @@ |
|
|
|
# ScoresController define Score and Grade interactions |
|
|
|
class ScoresController < ApplicationController |
|
|
|
include Pagy::Backend |
|
|
|
|
|
|
|
before_action :set_score, only: %i[show edit update destroy] |
|
|
|
|
|
|
|
# GET /scores |
|
|
|
def index |
|
|
|
@scores = Score.all |
|
|
|
@pagy, @scores = pagy(Score.all) |
|
|
|
|
|
|
|
logger.info 'this is a normal message' |
|
|
|
logger.info 'this is a super long message which should be wrapped. ' * 5 |
|
|
|
# logger.info({ one: 1, two: 2 }) |
|
|
|
# logger.info 'this is an information', { four: 4, five: 5 } |
|
|
|
# logger.debug BigDecimal('0.0003') |
|
|
|
# logger.warn 'scores are', @scores |
|
|
|
# logger.warn 'this is a warning' |
|
|
|
# logger.error 'this is an error message' |
|
|
|
logger.info 'end of normal message' |
|
|
|
# logger.info 'end of normal message' |
|
|
|
# logger.debug @scores |
|
|
|
# sleep 0.5 |
|
|
|
end |
|
|
|