Undefined method `name’ for an instance of Array (NoMethodError)
I am trying to add an element into an instance of array by using push(<<) to insert variables new_name and new_origin into ingredients array but I am receiving this error: undefined method `name’ for an instance of Array (NoMethodError)
Ruby: undefined method `name’ for an instance of Array (NoMethodError)
Really need a help!!!
Ruby: Adding an element to array receiving an error: undefined method `name’ for an instance of Array (NoMethodError)
I am trying to add an element into an instance of array by using push(<<) to insert variables new_name and new_origin into ingredients array but I am receiving this error: undefined method `name’ for an instance of Array (NoMethodError)