Created
June 22, 2009 16:32
-
-
Save wallace/134063 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> activity_fields.zip(ar.first) | |
TypeError: can't convert Hash into Array | |
from (irb):45:in `zip' | |
from (irb):45 | |
from :0 | |
>> activity_fields.zip(ar.first.to_a) | |
=> [["curriculum_activity_id", ["enrollment_id", "2509140"]], ["name", ["curriculum_id", "6836"]], ["parent_id", ["name", "AML for Banks: The Office of Foreign Assets Control (OFAC)"]], ["lft", ["curriculum_activity_id", "1246"]], ["rgt", ["completed_on", nil]], ["curriculum_id", ["attempts_max", "0"]], ["course_id", ["completions_min", "0"]], ["enrollment_curriculum_activity_id", ["lft", "1"]], ["enrollment_id", ["enrollment_curriculum_activity_id", "1607986"]], ["course_enrollment_id", ["control_mode", "flow"]], ["started_on", ["parent_id", nil]], ["completed_on", ["attempts", "1"]], ["status", ["score", "0"]], ["score", ["status", "in-progress"]], ["attempts", ["started_on", nil]], ["control_mode", ["course_enrollment_id", "2577211"]], ["completions_min", ["course_id", "19"]], ["attempts_max", ["rgt", "2"]]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment