This code doesn't give me a syntax error. Can you post the entire
error message? Copy and paste, do not retype.

(Wild guess: write "group(:whatevs) do", with parentheses.)

-- Matma Rex