anusharanganathan / data2paper

Rails helper application to submit data papers from repositories to publishers
7 stars 1 forks source link

Error with new data paper #1

Closed anusharanganathan closed 6 years ago

anusharanganathan commented 6 years ago

Click on link to create new datapaper The following error is displayed

ArgumentError in Hyrax::DataPapersController#new
wrong number of arguments (given 0, expected 2)

Application trace: In app/models/concerns/person_statement.rb:15:in `initialize'

    ## Necessary to get AT to create hash URIs.
>>  def initialize(uri, parent)
      if uri.try(:node?)
        uri = RDF::URI("#person#{uri.to_s.gsub('_:', '')}")
      elsif uri.start_with?("#")
anusharanganathan commented 6 years ago

Resolved in commit c7e885199421f3356d913ef24e57d1a133e88d5f