Corrected undefined method error has_many