title: Ruby - How to get the last two values in an array?
body: <pre class="lang-ruby prettyprint-override"><code>numbers = [1, 2, 3, 4, 5, 6, 7, 8]
  
  numbers.last
  # =&gt; 8
  </code></pre>
  <p>I need to grab the last two records.</p>
  <p>So far I've tried this:</p>
  <pre class="lang-ruby prettyprint-override"><code>numbers.last - 1
  # throws a `NoMethodError`
  </code></pre>