def create
      request.body.rewind
      @antenna = Antenna.new(:access_token => params[:antenna][:access_token], :payload => request.body_stream.read)

      if @antenna.save
        redirect_to @antenna, notice: 'Antenna was successfully created.'
      else
        render action: 'new'
      end
    end
def create
      request.body.rewind
      @antenna = Antenna.new(:access_token => params[:antenna][:access_token], :payload => request.body_stream.read)

      if @antenna.save
        redirect_to @antenna, notice: 'Antenna was successfully created.'
      else
        render action: 'new'
      end
    end
POST /antennas