AdBanner i18n vars patch

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-04-23 14:05:18 +08:00
1 parent 2f279c53ff
commit ff472714de
5 files changed
+20 -5

No files matched your search

@@ -39,8 +39,10 @@ class Admin::AdBannersController < ApplicationController
redirect_to admin_ad_banners_url
end
def destroy_ad_image
def realtime_preview
@ad_banner = AdBanner.find(params[:id])
@ad_banner.update_attributes(params[:ad_banner])
render
end
def index