Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master

This branch is even with ryanb:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
todo-after
todo-before
README.md

README.md

RailsCasts Episode #54: Debugging Ruby (revised)

http://railscasts.com/episodes/54-debugging-ruby-revised

Requires Ruby 1.9.2 or higher.

Commands used in Terminal

bundle
rails s

Commands used in debugger

help
help list
list
next
pp @today_tasks
pp @today_tasks.map(&:due_at)
step
l
n
pp range
irb
continue

Commands used in irb

puts where(due_at: range).to_sql
date.to_time
date.to_time_in_current_zone
range = date.beginning_of_day..date.end_of_day
exit
Something went wrong with that request. Please try again.