Aug 152010
Multi-line string in Ruby
Answer:
To declare a multi-line string in Ruby, it is as easy as the following.
sql = "
SELECT *
FROM `user` AS u
JOIN `company` AS c
ON u.cid = c.id
WHERE u.id = 8
"
puts sql