fix i18n vars in ad_banner

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-04-17 15:21:43 +08:00
1 parent 06a3128be5
commit a9a4ca6ede
8 files changed
+24 -19

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