From 82ffc7c3fd155c6d7a59eab2c867bc1e70004ee7 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Tue, 19 Nov 2013 10:32:13 +0800 Subject: [PATCH] Fixed Mobile Site --- app/controllers/mobile_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/mobile_controller.rb b/app/controllers/mobile_controller.rb index 3879c393..0106e5da 100644 --- a/app/controllers/mobile_controller.rb +++ b/app/controllers/mobile_controller.rb @@ -7,7 +7,7 @@ class MobileController < ApplicationController def index date_now = Time.now @bulletins = Bulletin.all.available_for_lang(I18n.locale).can_display.any_of( {deadline: nil,:postdate.lte => date_now} , {:deadline.gte => date_now,:postdate.lte => date_now} ).desc( :is_top, :postdate).page(params[:page_main]).per(15) - @ad_banner = AdBanner.where(title: "Banner")[0] + @ad_banner = AdBanner.find(:all, :conditions => {:title => /Home/i})[0] end def announcement