samvera-deprecated / worthwhile

An simple institutional repository for Hydra
Other
17 stars 5 forks source link

Undefined method in curation_concern_attribute_to_html #32

Open flyingzumwalt opened 9 years ago

flyingzumwalt commented 9 years ago

FYI, I think this line calls a method that doesn't exist.

https://github.com/curationexperts/worthwhile/blob/master/app/helpers/worthwhile/attribute_helper.rb#L16

It calls derived_label_for(), which is defined in Curate, but wasn't ported into Worthwhile.

This will raise an error undefined methodderived_label_for'`

curation_concern_attribute_to_html(curation_concern, :creator, nil, {})

This will work fine:

curation_concern_attribute_to_html(curation_concern, :creator, "Creator", {})