Use flash[:notice] instead of flash.notice for consistency