Re: This code is pretty messy- is there any way to clean it up?

That section of code is an array of hashes. the array is used to hold order and the hashes are used to pair the name of the item with the value for that item.

The |k,v| means k will be what ever is on the left of the hash, the key. and v is the value, whatever is on the right.

The @customer.email || "N/A" means that if @customer.email is nil, then just return "N/A", otherwise use the email.

In the name_and_business method, you will see a tertiary command:comparison ? true : falseSo in our example we have:business_name.blank? ? name : name + "@ #{business_name}"which says if the business_name is nil or an empty string (blank?) then return just the name, otherwise if we have the business name return the name and the business name like this: name + "@ #{business_name}"