Change ad_banner preview from using title to id
This commit is contained in:
1 parent
8e444a88d0
commit
ddf7931123
5 files changed
+23
-23
No files matched your search
@@ -45,8 +45,8 @@ class Admin::AdBannersController < ApplicationController
|
||||
end
|
||||
|
||||
def realtime_preview
|
||||
@ad_banner = AdBanner.first(conditions: { title: params[:title] }).preview_clone
|
||||
#@ad_banner.update_attributes(params[:ad_banner]).update_attributes(params[:ad_images])
|
||||
@ad_banner = AdBanner.find( params[:id] ).preview_clone
|
||||
@ad_banner.update_attributes(params[:ad_banner])#.update_attributes(params[:ad_images])
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
Reference in new issue
Block a user