On 17 November 2011 09:18, gbolahan a. <[email protected]> wrote:
> 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",

The error probably means that @categorys is nil, did you mean
@categories possibly?

Colin

> "category_type") %>
> I need guidance on how to properly do this, thanks for the support
> yesterday.

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