title: Undefined method in controller
body: <p>I'm getting an error when trying to call a method in my controller. Following tutorials on how to get this to work but just a bit stuck in the mud and need some help.</p>
  
  <pre><code>NoMethodError in CatalogController#index
  undefined method `art' for #&lt;Class:0x007fbe8c338310&gt;
  </code></pre>
  
  <p>My model</p>
  
  <pre><code>require 'httparty'
  require 'json'
  
  class Feed &lt; ActiveRecord::Base
    include HTTParty
    base_uri 'https://www.parsehub.com/api/v2/runs'
    # GET /feeds
    # GET /feeds.json
    def art
      response = self.class.get("/tnZ4F47Do9a7QeDnI6_8EKea/data?&amp;format=json")
      @elements = response.parsed_response["image"]
      @parsed = @elements.collect { |e| e['url'] }
    end
  
  end
  </code></pre>
  
  <p>My controller</p>
  
  <pre><code>class CatalogController &lt; ApplicationController
  
  
      def index
        @images = Feed.art
      end
  
  
  end
  </code></pre>
  
  <p>I'm guessing it's something fairly simple I'm forgetting.</p>