Error: undefined method `parent' for #<CategoryGroup:0x40ceff47>