title: How to call a rails namespaced api from web namespaced controller?
body: <p>Is like this:</p>
  
  <p>I have a rails project. Inside of it, i have a namespace/subdomain for the api and a namespace/rootdomain for the web.
  I want to put all the business logic inside the api, and simply call it from the web namespaced controller.</p>
  
  <p><a href="http://api.example.com" rel="nofollow">http://api.example.com</a> => api<br>
  <a href="http://example.com" rel="nofollow">http://example.com</a>     => web</p>
  
  <p>Any ideas on how i have to organize the project? how do i make the internal calls? or is another (better) way to do it?</p>
  
  <p>Thanks</p>