On 4 March 2010 12:19, mac [email protected] wrote:
thanks for your reply,
i know what that error means… but my problem is why this is comming
& how can i achieve my solution.
Did you try my suggestion to use ruby-debug?
- content_master model:
class ContentMaster < ActiveRecord::Base
That should be :metadata not :Metadata
- metadata model:
class Metadata < ActiveRecord::Base
belongs_to :ContentMaster, :class_name => ‘ContentMaster’
That should be :content_master and then the class name will not be
- new action in controller
@content_master = ContentMaster.new
@metadata = @content_master.Metadata.build
Should be metadata again.
i hope now my problem is more clear
It might be worth your while having a look at the ActiveRecord
Associations guide aswell as the debugging one. That will explain how
to use associations.