# Problems select list generated from tables

**URL:** <https://www.ruby-forum.com/t/problems-select-list-generated-from-tables/149990>\
**Category:** Rails\
**Created:** [October 2, 2008, 12:36am UTC](https://www.ruby-forum.com/t/problems-select-list-generated-from-tables/149990 "2008-10-02T00:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![staypufd](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecd19e/32.png) [@staypufd](https://www.ruby-forum.com/u/staypufd)\
**Post date:** [October 2, 2008, 12:36am UTC](https://www.ruby-forum.com/t/problems-select-list-generated-from-tables/149990/1 "2008-10-02T00:36:24Z")

</div>

I would like to generate a select list form multiple associations and  
I’m not being able to. Do not know what the problem is. Hope anyone can  
help.

the code below gives me a: “You have a nil object when you didn’t  
expect it!  
The error occurred while evaluating nil.filename”

@skinType = Furni.find(:all, :include =\>[:imageasset =\> {:skin =\>  
[:skintype, :skinstyle]}]).map {|st| [st.imageasset. filename, st.id] }
