--
You received this message because you are subscribed to the Google Groups "ActiveFedora / Ruby + Fedora Commons" group.
To post to this group, send email to active...@googlegroups.com.
To unsubscribe from this group, send email to active-fedor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/active-fedora?hl=en.
--
class
OralHistory < ActiveFedora::Basehas_relationship
"parts", :is_part_of, :inbound => truehas_metadata
:name => "dublin_core", :type => ActiveFedora::QualifiedDublinCoreDatastream do |m| # With QualifiedDublinCoreDatastreams, you only have to declare variations from the standard set of DCMI Terms. The rest are automatically included.m.field
"subject_heading", :string, :xml_node => "subject", :encoding => "LCSH"end
has_metadata
:name => "properties", :type => ActiveFedora::MetadataDatastream do |m| # For metadata that doesn't fit elsewhere, you can create simple xml documents.m.field
"my_metadata_field", :stringend
endoh = OralHistory.new
=> ....class
TestPidObjectCM < ActiveFedora::Basehas_relationship
"parts", :is_part_of, :inbound => truehas_metadata
:name => "dublin_core", :type => ActiveFedora::QualifiedDublinCoreDatastream do |m| # With QualifiedDublinCoreDatastreams, you only have to declare variations from the standard set of DCMI Terms. The rest are automatically included.m.field
"subject_heading", :string, :xml_node => "subject", :encoding => "LCSH"end
has_metadata
:name => "properties", :type => ActiveFedora::MetadataDatastream do |m| # For metadata that doesn't fit elsewhere, you can create simple xml documents.m.field
"my_metadata_field", :stringend
endpto = TestPidObjectCM.new
NameError: uninitialized constant TestPidObjectCM
from
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in `load_missing_constant'from
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing'from
C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing' from (irb):6