我想得到"/a_setting/c\blah = something"
属性被评估为其值的字符串:blah。但是,我看到以下行为,其中前面的反斜杠似乎停止了对变量的评估:
attribute = "blah"
"/a_setting/c\#{attribute} = something"
=> "/a_setting/c\#{attribute} = something"
"/a_setting/c\ #{attribute} = something"
=> "/a_setting/c blah = something"