The new AdBanner.

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-04-02 03:04:38 +08:00
1 parent b17cd7570f
commit 8f28d45379
32 files changed
+1763 -240

No files matched your search

+10 -2
View File
@@ -10,11 +10,14 @@ class Admin::AdBannersController < ApplicationController
end
def show
@ad_banner = AdBanner.find(params[:id])
@ad_banners = AdBanner.all
@active = AdBanner.find(params[:id])
render :action => 'index'
end
def new
@ad_banner = AdBanner.new
@ad_banners = AdBanner.all
render :action => 'index',:params => 'new'
end
def create
@@ -36,8 +39,13 @@ class Admin::AdBannersController < ApplicationController
redirect_to admin_ad_banners_url
end
def destroy_ad_image
end
def index
@ad_banners = AdBanner.all
@active = @ad_banners.first
end
end