String interpolation in Ruby doesn’t work?

Regardless of which version of Ruby you’re using, string interpolation doesn’t happen in single-quoted strings. Use double-quoted strings or %Q-style strings.

Leave a Comment