def create
      @banner = Banner.new(banner_params)
  
      respond_to do |format|
        if @banner.save
          format.html { redirect_to @banner, :notice => 'Banner was successfully created.' }
          format.json { render :json => @banner, :status => :created, :location => @banner }
        else
          format.html { render :action => "new" }
          format.json { render :json => @banner.errors, :status => :unprocessable_entity }
        end
      end
    end
def create
      @banner = Banner.new(banner_params)
  
      respond_to do |format|
        if @banner.save
          format.html { redirect_to @banner, :notice => 'Banner was successfully created.' }
          format.json { render :json => @banner, :status => :created, :location => @banner }
        else
          format.html { render :action => "new" }
          format.json { render :json => @banner.errors, :status => :unprocessable_entity }
        end
      end
    end
POST /banners
 POST /banners.json