The new AdBanner.
This commit is contained in:
1 parent
b17cd7570f
commit
8f28d45379
32 files changed
+1763
-240
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user