Hi again,
I have two Models has follow:

Class Device
has_many :links, :foreign_key => "src_device_id"
has_many :links, :foreign_key => "dst_device_id"


Class Link
belongs_to :src_device, :class_name => "Device"
belongs_to :dst_device, :class_name => "Device"


When I'm on the "Device" page, if I click on the list of links of a
device in order to see them nested, the request fail because the SQL
request finish with "where links.device_id = XXXX) where XXXX is the
ID of the device instead of something like "where links.src_device_id
= XXXX" or even better (but harder for AS) "(links.src_device_id =
XXXX) OR (links.dst_device_id = XXXX)

Is it normal? and is there a way to change that?

Thanks in advance,

Sylvain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to