Possible Duplicate:
How do I escape #{ from string interpolation
If I have a string like this:
"interpolated: #{1}, verbatim: #{dont_interpolate}"
How do I escape only the second #{} such that the output looks like this:
=> interpolated: 1, verbatim: #{dont_interpolate}
I tried this:
"interpolated: #{1}, verbatim: #\{dont_interpolate\}"
but I get an extra slash in front of the #:
interpolated: 1, verbatim: \#{dont_interpolate}