Ricardo do Valle
2014-Apr-19 19:31 UTC
How to has_one/belongs_to association only return the objects unassociated in combobox?
I have two models (Car and Driver) and a combobox to select which driver belongs to which car. I want the combobox just show the objects that have not yet been associated. # vehicle belongs_to: driver # driver has_one: vehicle # simple_form # vehicle/_form.html.haml = f.association: driver, label_method: :name, value_method: :id How to ensure validation before saving, to avoid problems of concurrent accesses? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CALQXn36UDt467iYC6EfeGa3UK4af3UcCjWFNR9dHY%3D%3DTc9gotQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Possibly Parallel Threads
- :locals does not pass var in rails 3.1.0 partial view
- [909] branches/wxruby2/wxwidgets_282/doc/textile/combobox.txtl: Correct disambiguated method names in methods listing
- Related combobox
- [989] branches/wxruby2/wxwidgets_282: Fix a crasher with misdirected ComboBox#GetSelection method on GTK; clearer
- R TclTk iwidgets::combobox