i found a strange behaviour in AS:
Give the following (Pseudocode):

Model:
 class Company < ActiveRecord::Base
  set_primary_key :C_ID
  has_many :addresses, :foreign_key => :A_C_ID
end

class Address < ActiveRecord::Base
 set_primary_key :A_ID
 belongs_to :company, :foreign_key => :A_C_ID
end


I configured CompanyController to use Subform of AddressController to
edit addresses.

With this code AS allways tries to INSERT new address instead of
UPDATE.
When i change table primary key to 'address_id'  (accoring to Rails
Conventions)  instead of A_ID   it updates. Unfortunately i can't
change the primary ID on the production DB. Am i missing something on
the configuration or AR-Settings or is this a bug ?







-- 
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