Hi Fred, I employed your code and it looks/works great. I could swear my old code populated an adjacent text-box, but I must have been hallucinating.
Thank for you additional post which jump-started my effort for neater code. Best wishes, Richard On Apr 14, 7:02 am, Frederick Cheung <[email protected]> wrote: > On Apr 13, 8:03 pm, RichardOnRails > > <[email protected]> wrote: > > Hi Frederick, > > > Thanks for your additional help with a simpler solution. I tried to > > replace my select_tag approach with the f.select approach: > > > <%= f.select :vendor, @current_vendors %> > > <%# = select_tag "expense[vendor]", > > options_for_select(@current_vendors) %> > > > 1. The f.select :vendor provided the drop-down control, but > > selecting an item did not populate the vendor text control, as the > > former solution did, some I'm sure I misunderstand your intent. > > It's just a drop down box - it's not going to do anything to any other > control on the page - just pointing out that you don't need to use > select_tag when you have a form builder handing around. > > Fred -- 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.

