fix i18n vars in ad_banner

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-04-23 14:07:13 +08:00
1 parent 1b70852ff7
commit e353afb5ac
8 files changed
+26 -16

No files matched your search

@@ -40,14 +40,13 @@ class Admin::AdBannersController < ApplicationController
end
def realtime_preview
@ad_banner = AdBanner.find(params[:id]).clone
debugger
@ad_banner.update_attributes(params[:ad_banner])
@ad_banner = AdBanner.find(params[:id]).preview_clone
#@ad_banner.update_attributes(params[:ad_banner]).update_attributes(params[:ad_images])
end
def index
@ad_banners = AdBanner.all
@active = @ad_banners.first
@active = @ad_banners.first
end
end