3 ms·
The ".mp3" example worries me. It fails on concatenating strings?
by Raphael 16y ago
The ".mp3" example worries me. It fails on concatenating strings?
- robconery 16y agoIt does, yes. I don't know if that's a purposeful design consideration or what - but in general that kind of thing in your view is a bad idea. Put it in a helper or drop it in your model.
- redstripe 16y agoHow about: @(show.Slug+".mp3") I think you need brackets to tell the parser when the code ends if you're building expressions.