开发者

Interpolation not working on Rails generator

开发者 https://www.devze.com 2023-01-03 13:53 出处:网络
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.

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

精彩评论

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