Disable ad_banner_preview. Just show window
This commit is contained in:
		
							parent
							
								
									a5db2382e7
								
							
						
					
					
						commit
						0836583694
					
				| 
						 | 
					@ -46,7 +46,7 @@ class Admin::AdBannersController < ApplicationController
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  def realtime_preview
 | 
					  def realtime_preview
 | 
				
			||||||
    @ad_banner = AdBanner.first(conditions: { title: params[:title] }).preview_clone
 | 
					    @ad_banner = AdBanner.first(conditions: { title: params[:title] }).preview_clone
 | 
				
			||||||
    @ad_banner.update_attributes(params[:ad_banner]).update_attributes(params[:ad_images])
 | 
					    #@ad_banner.update_attributes(params[:ad_banner]).update_attributes(params[:ad_images])
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  def index
 | 
					  def index
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,7 +24,6 @@ class AdImage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # validates_numericality_of :weight, greater_than_or_equal_to: 1,less_than_or_equal_to: 10
 | 
					  # validates_numericality_of :weight, greater_than_or_equal_to: 1,less_than_or_equal_to: 10
 | 
				
			||||||
  # validates_format_of :out_link, with: /(http:\/\/.*|)/ ,:message => 'Need a valid URL'
 | 
					  # validates_format_of :out_link, with: /(http:\/\/.*|)/ ,:message => 'Need a valid URL'
 | 
				
			||||||
  # validates_presence_of :post_date,:message => 'Need a valid post date'
 | 
					 | 
				
			||||||
  attr_reader :parse_post_date,:parse_unpost_date
 | 
					  attr_reader :parse_post_date,:parse_unpost_date
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def parse_post_date=(att)
 | 
					  def parse_post_date=(att)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue