Every answer posted on SO (yes, I checked) seems to have require 'date' as a solution. I've done that and my code still won't work.
require 'date' yesterday = RepSched::Helpers.datestring(Date.yesterday) For some reason, Ruby chokes on Date.yesterday
NoMethodError: undefined method `yesterday' for Date:Class What am I doing wrong?
edit
Oh no! Now my problem is bigger than I thought. Now that I've realized that issue, I realize DateTime's behavior is different too!
yesterdayis a method added by Railsrequire 'active_support/core_ext/date/calculations'