title: How to properly run a Rails app inside Electron?
body: <p>I am very new to Electron, just tried to follow the Documentation.<br>
  I was able to run a html in Electron and it worked fine.</p>
  
  <p>Then I tried to load a Rails app with BrowserWindow loadUrl, but the javascripts of the app are not working inside Electron.  </p>
  
  <p>My main is this index.js here:</p>
  
  <pre><code>var app = require ('app')
  var BrowserWindow = require ('browser-window')
  app.on('ready', function(){
      var mainWindow = new BrowserWindow({
          width:1115,
          height:945
      })
      mainWindow.loadUrl('http://my-app-at-heroku.herokuapp.com')
  })
  </code></pre>
  
  <p>Running the server in my machine and loading <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a> has the same behavior.  The app appears, but the js don't work.</p>
  
  <p>What have I missed?  How do I properly run a Rails app inside Electron?</p>