From 4f582bc7f905d08e75e21fb7707d91197e6f08ef Mon Sep 17 00:00:00 2001 From: differentreality Date: Mon, 29 Jul 2013 08:48:04 +0300 Subject: [PATCH] show first day if today is not within the conference date range --- app/controllers/schedule_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/schedule_controller.rb b/app/controllers/schedule_controller.rb index 177b90c0..2a00ae7c 100644 --- a/app/controllers/schedule_controller.rb +++ b/app/controllers/schedule_controller.rb @@ -10,6 +10,8 @@ class ScheduleController < ApplicationController if @dates === Date.current @today = Date.current.strftime("%Y-%m-%d") + else + @today = @conference.start_date.strftime("%Y-%m-%d") end end