title: ArgumentError: wrong number of arguments (given 0, expected 2..3)
body: <p>I'm trying to get searchkick to work but I run into an error when I attempt to <strong>reindex</strong> my stories via the console. I can't seem to understand what the error might be and would love some help. </p>
  
  <p>The error via the console after entering "Story.reindex":</p>
  
  <pre><code>Story Import (3.6ms)  {"count":2,"exception":["ArgumentError","wrong 
  number of arguments (given 0, expected 2..3)"],"exception_object":"wrong 
  number of arguments (given 0, expected 2..3)"}
  ArgumentError: wrong number of arguments (given 0, expected 2..3)
      from app/models/story.rb:42:in `hot_score'
      from (irb):1
  </code></pre>
  
  <p><strong>story.rb model:</strong></p>
  
  <pre><code>class Story &lt; ApplicationRecord
  searchkick
  
  has_many :votes
  
  scope :newest, -&gt; { order(created_at: :desc) }
  scope :hottest, -&gt; { order(hot_score: :desc) }
  
  def upvotes
   votes.sum(:upvote)
  end
  
  def downvotes
   votes.sum(:downvote)
  end
  
  def calc_hot_score
   points = upvotes - downvotes
   time_ago_in_hours = ((Time.now - created_at) / 3600).round
   score = hot_score(points, time_ago_in_hours)
  
   update_attributes(points: points, hot_score: score)
  end
  
  private
  
  def hot_score(points, time_ago_in_hours, gravity = 1.8)
   (points - 1) / (time_ago_in_hours + 2) ** gravity
  end
  end
  </code></pre>
  
  <p>Can anyone help explain what is going on and maybe a way to get around it? I'm still pretty new to Ruby. </p>
  
  <p>Thank you ahead of time.</p>