Skip to content
jbuckle edited this page Sep 12, 2013 · 28 revisions

Welcome to the drs-sufia-app wiki!

Creating the first parent collection on an empty repository

Loading development environment (Rails 3.2.13)
irb(main):001:0>  a = NuCollection.new(pid: 'neu:1', identifier: 'neu:1', title: 'Root Collection')
=> #<NuCollection pid:"neu:1", nu_title:["Root Collection"], nu_description:[""], nu_identifier:["neu:1"], depositor:nil>
irb(main):002:0>  a.rightsMetadata.permissions({group: 'public'}, 'read')
=> "read"
irb(main):003:0> a.rightsMetadata.permissions({person: "dev_email_account_here"}, 'edit')
=> "edit"
irb(main):004:0> a.save!
=> true
Clone this wiki locally