This looks like the perfect opportunity to introduce a helper. How bout one that conforms to this interface: `month_link('<', @date.beginning_of_month - 1)`?