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
require 'nokogiri' | |
require 'open-uri' | |
print "How many cards? " | |
CARDS_IN_CUBE = gets.strip.to_i | |
print "What format? " | |
LEGAL_IN_FORMAT = gets.strip | |
card_count = 1 | |
# Create or open a text file in the same directory as this file and stores the card names there. |
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
stories = Story.where(is_starred:false, is_read:true, keep_unread:false) | |
stories.each do |story| story.destroy end |