开发者

Interpolation not working on Rails generator

For some reason the code I have included below does not interpolate the var开发者_运维技巧iables into the template. It simply copies the file over verbatim. I cannot figure out why.

https://gist.github.com/60484f7b57b06b6eb3e3

The Rails version is 2.3.4.

Thanks in advance!


Is there NO interpolation going on, or is the interpolation just done with blanks? Reason I ask is, that I think

class <%= @model_name.camelize %>

should be written as

class <%= model_name.camelize %>

HTH

/Carsten

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜