On Oct 13, 7:32 pm, Daniel <[EMAIL PROTECTED]> wrote:
> Well, thank you very much Daniel :-) your information is quite useful
>
> I checked my code, yes, it is like <select name="item[brand]" ...>
> I forgot to mentioned that, I have tried to use "<%=
> f.collection_select(:brand_id, Brand.find(:all), :id, :name,
> {:prompt => "please select one brand"}) %> "
> But, I have got another error "undefined method `brand_id' for #<Item:
> 0x6ce3258>"
Just to make sure: do you have a brand_id integer field in your items
table?
What is the code for your controller - the thing you're posting to?
Daniel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---