Underfine method group_by_day

errorruby
how to solve undefined method group_by_day.. I already use gem groupdate on my rails