i had the following error while trying to implement Collection _select 
in making a drop down of items in two models

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.map

my code in the  views is as follows:

<%= collection_select("category", "category_id",@categorys, "id", 
"category_type") %>
I need guidance on how to properly do this, thanks for the support 
yesterday.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to