title: Rails POST, PUT, GET
body: <p>After I generate a scaffold, Rails gives me the ability to POST to <code>items.xml</code> which will create a new <code>item</code>. A GET to <code>items.xml</code> will simply list them all. Where does Rails specify which method in the controller (<code>create</code> or <code>index</code>, respectively) will be called, based on the type of action I am performing?</p>
  
  <p>More specifically, POST calls methodA but GET to the same URL calls methodB. Where is this specified?  Where does Rails make the determination to call the <code>index</code> method of the controller?</p>