Code blocks syntax as method arguments

Rails has time extensions, so you can use things like Time.now.next_month and Time.now.next_month.month
Go into your script/console and check it out. It's pretty sweet for doing Time and Date-based work.
Also see api.rubyonrails.org under CoreExtensions::Numeric::Time

In my experience, the Date class sucks and I don't use it.

Jason

Sam Woodard wrote: