undefined local variable or method `key' for #<Category:0x00555b69949340>