I am defining monday and friday using the following:
@monday = Date.today.at_beginning_of_week
@friday = 5.days.since(@monday)
But I actually need, for any given day, to loop through Monday, Tuesday, Wednesday and take that date and put the output into a column.
<th>Monday</th>
<th>Tuesday</th>
etcetera
A given row, for example, would be:
<tr><td>method_with_arg(monday)</td><td>method_with_arg(tuesday)</td><td>method_with_arg(wednesday)</td></tr>
This is where value is a method that takes args date.
What's the cleanest way to do this?
Thanks.