You know there's a much simpler way to do this:

```ruby
Date.today.beginning_of_month
```