Fixes to the Calendar page build error in Rails.