title: Organizing models/controllers and classes in rails in subfolders
body: <p>I am working in a Rails project in which i have used the below names for model/controller and class files</p>
  
  <pre><code>/app/models/friends/friend.rb
  /app/controllers/friends/friends_controller.rb
  /lib/classes/friends/friend.rb
  </code></pre>
  
  <p>I tried to add all the models, controllers and class files in autoload path in application.rb.
  But i am facing issues since the class names are same.</p>
  
  <p>How should i handle this? and organize files in such a way that files are organized with name spaces.</p>
  
  <p>Thanks,
  Balan</p>