Nevermind, I'm silly. I didn't event notice the 'month_link'
definition in calendar_helper.rb
Hence I am able to use the calendar as a nested resource for my units
with the following using a url such as: '/units/3/
calendar/:year/:month'
def month_link(month_date)
if params[:id]
unit = Unit.find(params[:id])
link_to(I18n.localize(month_date, :format => "%B"),
unit_path(unit) + "/calendar/#{month_date.year}/#{month_date.month}")
# unit calendar
else
link_to(I18n.localize(month_date, :format => "%B"), {:month =>
month_date.month, :year => month_date.year}) # original calendar
end
end
In case it helps anyone else out there some day who is blind like me.