class MoodsController < ApplicationController def index @mode = Mood.last&.mode || "croisiere" @mood_log = Mood.history_for_a_year || [] end end