Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

zyBooks feedback is not showing #65

@apo5698

Description

@apo5698

Errors should be returned as the second element of the array:

# code above...
error = []
error << ["Total: #{actual} => #{point}"] if something_happen

[[point, '', 0], error]

https://github.com/apo5698/helli/blob/c291af6c22d3aeff284c3a807c010f5a7d27dabb/app/models/rubrics/item/zybooks.rb#L24-L26

Also change

https://github.com/apo5698/helli/blob/c291af6c22d3aeff284c3a807c010f5a7d27dabb/app/models/grade_item.rb#L101

to

self.error = capture[1]

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions