# Is it possible to include image files in Generators?

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-include-image-files-in-generators/112592>\
**Category:** Rails\
**Created:** [August 21, 2007, 7:30am UTC](https://www.ruby-forum.com/t/is-it-possible-to-include-image-files-in-generators/112592 "2007-08-21T07:30:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [August 21, 2007, 7:30am UTC](https://www.ruby-forum.com/t/is-it-possible-to-include-image-files-in-generators/112592/1 "2007-08-21T07:30:08Z")

</div>

I’m trying to convert a script that uses image files. Is there a way to  
include images in the generators itself? (e.g.  
generators/somename/templates/abc\_logo.gif)

I tried it, but it says:

“You have a nil object when you didn’t expect it! You might have  
expected an instance of Array. The error occurred while evaluating  
nil.empty?”

Any ideas?
