Hey, Priyanka and Sameera, I've thought about design I'm aiming for and realized that I can accomplish it in a very straight-forward way.
Again, thanks for your great solution to my original problem. Best wishes, Richard On Apr 10, 10:18 pm, RichardOnRails <[email protected]> wrote: > In app\views\expenses\new.html.erb, I (mistakenly) replaced the > script/generated: > <%= f.label :vendor %><br /> > <%= f.text_field :vendor %> > with: > <%= f.label :vendor %><br /> > <% @current_vendors = Vendor.find(:all, :order=>"nickname") %> > <%= select_tag "list", options_for_select(@current_vendors) %> > > This (if I haven't introduced any typos here) works fine, except that > the user-selection doesn't really populate the database's vendors > column in the expense record. > > How do I repair this situation? I'd like to restore the the original > text field and somehow populate it with the user-selected value from > the select control. -- 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.

