I want to create 7 categories in production, so I have an array for them:
categories = ["Industrial & Loft","Nórdico","Moderno","Clásico","Contemporaneo","Exótico","Rustico","Landing"]
I want to loop through the array in rails console, and create a new category for each of the items, but this wont work:
categories.each { |category| category.new}
It says: NoMethodError: undefined method `new' for "Industrial & Loft":String
What am I missing? Thanks
.newmethod only on class and class should start with capital `Category