# Interpolation of Variables Through Generator Not Working

**URL:** <https://www.ruby-forum.com/t/interpolation-of-variables-through-generator-not-working/189976>\
**Category:** Rails\
**Created:** [June 10, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/interpolation-of-variables-through-generator-not-working/189976 "2010-06-10T18:31:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [June 10, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/interpolation-of-variables-through-generator-not-working/189976/1 "2010-06-10T18:31:25Z")

</div>

I have a generator that creates a model amongst other files. We need  
to be able to interpolate data into that file but nothing is actually  
being interpolated. It is simply copying the file verbatim.

I was wondering if you could enlighten me as to what I am doing wrong.

Here is the generator and the model.rb file:  
[https://gist.github.com/60484f7b57b06b6eb3e3](https://gist.github.com/60484f7b57b06b6eb3e3)

Thanks a lot!

- Tom
