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
school = School.where(name: "General Assembly - New York City" ).last | |
pc.schools << school | |
course = Course.create(name: "Ruby on Rails") | |
school.school_courses << SchoolCourse.new(course:course, school: school, start_date: Date.today, end_date: 2.months.from_now, tuition: 12000, school_course_code: "ROR101" ) |
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
Delayed::Job.where("last_error is not null").each do |j| | |
h = YAML.load(j.handler) | |
puts "Handler class" | |
puts h.class | |
puts "Handler object" | |
puts h.object | |
puts "Handler method" | |
puts h.method_name | |
puts "Last Error" | |
j.last_error.each_line{|i| puts i} |
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
#!/bin/sh | |
echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
read inputline | |
name=$inputline | |
echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
read inputline | |
url=$inputline |