title: Where to add new objects in rails - should they go in the models folder?
body: <p>I come from a Java background, and am very used to wrapping code into objects. </p>
  
  <p>I was working on my first rails application; while writing up the controller, I wanted to wrap a snippet of code that adapted input from the view and modified it to a format that is accepted by the backend. </p>
  
  <p>I was unsure on where to position these objects. Should this "Adaptor" object I created go into the models? (I tried putting it there, but I cannot manage to find a reference to the file using "require".)</p>
  
  <p>Thanks!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>For example, say my input was a date in a string format: "31st July" -> my controller would be:</p>
  
  <pre><code>def create
    adaptor = Adaptor.new
    date = adaptor.to_date(params[:date])
    ...
  end
  </code></pre>
  
  <p>Where would the adaptor live? And if this object were to be "common" code, could it be used by my models?</p>