Try referencing f.country instead of f.country_select. You need to
use the id of the form field, which is "country" in this case. Take a
look at the HTML that the browser gets when you''re looking at this
form - it might help.
If that doesn''t help, please post your related view code, controller
code, and an output of log/development.log that shows what happens
when you submit the form. The log output should show you which
parameters are being passed.
-Kyle
On Mar 14, 7:58 am, Nish Patel
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi i am a newbee at rails and i am using the country_select and select
> drop down boxes in my new.rhtml I can make these work fine but when i
> try viewing it in my database and show and index they just wont appear,
> I have tried to edited it to how do I go about showing these items
> everywhere i am completely stuck.
>
> if text field = f.text_field
> then why doesnt country_select = f.country_select or f.select?
>
> <div class="address">
> <% fields_for "supplier[address_attributes][]", address do
|f|%>
>
> <p><b>Country</b><br /><%= country_select
(:country,"country",["United
> Kingdom"]) %></p>
>
> <
> --
> Posted viahttp://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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---