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
@activities = Activity.all | |
@activities.each do |activity| | |
activity.state = "Published" | |
activity.save | |
end |
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
{"lessonData":{"image":"http://ttm-content.s3.amazonaws.com/uploads/image/image/6543/LF4GuessWhatItIs.swf","title":"FL4. Interpret Graphs of Real-World Situations Lesson","type":"interactive_chapterized","chapters":[{"activity_id":59,"title":"Introduction","internal_title":"Introduction","order":1,"subtitles":[{"chapter_id":71,"created_at":"2012-06-01T00:23:44Z","display_text":"Subtitle","id":268,"position":1,"updated_at":"2012-06-01T00:23:44Z"}]},{"activity_id":59,"title":"Three Meanings","internal_title":"Three Meanings","order":2,"subtitles":[{"chapter_id":72,"created_at":"2012-06-01T00:23:44Z","display_text":"subtitle","id":269,"position":1,"updated_at":"2012-06-01T00:23:44Z"}]},{"activity_id":59,"title":"Ending","internal_title":"Ending","order":3,"subtitles":[{"chapter_id":73,"created_at":"2012-06-01T00:23:45Z","display_text":"subtitle","id":270,"position":1,"updated_at":"2012-06-01T00:23:45Z"}]}]}} |
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
pathway = Pathway.find([:id]) | |
s = Student.all | |
s.each do |student| | |
Enrollment.create(student_id: student.id, pathway_id: pathway.id) | |
end |
NewerOlder