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