title: Geocoder Nearby method
body: <p>I'm a beginner in Rails.</p>
  
  <p>I implemented the Geocoder gem and added latitude/longitude columns to a table named 'adventure'.</p>
  
  <p>I added</p>
  
  <pre><code>geocoded_by :address
  after_validation :geocode, if: :address_changed?
  </code></pre>
  
  <p>to my model adventures.rb</p>
  
  <p>I now try to render a list of 3 nearby places by applying the following:</p>
  
  <pre><code> &lt;% for adventure in @adventure.nearbys(2).limit(3) %&gt;
  </code></pre>
  
  <p>but it does not work and tells me "undefined method `limit' for nil:NilClass".</p>
  
  <p>It's weird because I follow a tutorial in which things work.</p>
  
  <p>What did I miss ?</p>
  
  <p>Thanks for the help :)</p>