Created
November 4, 2014 19:21
-
-
Save torsday/fda041c8f7de7778b5da to your computer and use it in GitHub Desktop.
handout select for cheaters
This file contains 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
@student_handouts = student_handouts_unfiltered.select { |sh| sh.title !~ /guide/i } | |
puts "X__" * 64 | |
@student_handouts.each {|x| puts "#{x.title}"} | |
puts "X__" * 64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above is the code that should filter out any handouts w/ the word "guide" in the title. The console shows
X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X_ Material 1 Material 2 Material 3 yo! X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X__X_
And yet the handouts shown include the one titled with "guide" in it. Thoughts?