Wiadomość napisana w dniu 2010-02-13, o godz. 04:58, przez kevinpfromnm:
select-many needs the list of items if you want it to reduce the
available list. instead of doing the has_many again, do a named_scope
like this maybe:
named_scope :devices_by_contract, lambda { { :conditions =>
['contract_id = ?', contract_id } }
Thanks! That's much cleaner than my approach!
---
Grzegorz Marszałek
[email protected]
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" 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/hobousers?hl=en.