Assign a value
via a block
reservation = Reservation.new do |r|
r.title = data["title"]
r.first_name = data["first_name"]
r.last_name = data["last_name"]
r.guest = data["guest"]
r.reserved_time = data["reserved_time"]
r.special_request = data["special_request"]
r.email = data["email"]
end
the result of if...else
a = 3
b = 2
result = if a > b
"a greater than b"
else
"a less than or equal to b"
end