search for: hardwareci

Displaying 1 result from an estimated 1 matches for "hardwareci".

Did you mean: hardware_ci
2008 Jan 02
6
problem when editing record in polymorphic relation
I have the following three models created applying the polymorphic concept ========================================================================== class SoftwareCi < ActiveRecord::Base has_one :ci, :as => :content end class HardwareCi < ActiveRecord::Base has_one :ci, :as => :content end class Ci < ActiveRecord::Base belongs_to :content, :polymorphic => true end The table, cis ,contains the following records ============================================= id | ci_number | content_id | content_type ----+----------...