title: Rails - separate front end and back end
body: <p>I'm building a Rails application where all the front end files are store in a different server from the Rails server. Thus all requests are handled by AJAX sent by Javascript.</p>
  
  <p>I did this partially for separating the front end and back end and to prevent getting the app messy. And since I was using Google Closure Library, but Rails doesn't seem to support it very well.</p>
  
  <p>What I wonder is that whether it is generally a good practice, or is it really necessary to do this. Now I have problems with CSRF, that I could not figure out how to safely send AJAX to the server since I have no access to the csrf token at the front end without breaking my session.</p>