title: Determine the class to which a method belongs in rails
body: <pre><code> Ap::Application.routes.draw do
    resources :accounts
   end
  </code></pre>
  
  <p>I want to know the class or module to which the "resources" method belongs. If i search for "resources" method in <a href="http://apidock.com/rails/" rel="noreferrer">http://apidock.com/rails/</a> (in the search text box provided), a list of classes are appearing which has the method name "resources". Confused, with knowing the origin of the method.</p>
  
  <p>Is their any command which i can use in puts to see the origin. </p>
  
  <p>The question is bit of beginners level.</p>
  
  <p>Thanks</p>