First Generate Ember application using Yo Ember generator
- Install yeoman
npm install -g yo grunt-cli bower
- Install ember-generator
npm install -g generator-ember
- Create your project
mkdir webapp && cd webapp
- Generate ember template
yo ember
- Run it
grunt server
Copy your files manually from rails to the matching directories.
Finally, moving out of rails, you will need to enable cross-domain access in Rails. And to do this just add this Rack Cors Gem.
- Add this
gem 'rack-cors', require: 'rack/cors'
to yourgemfile
. - Set it up by adding the following code to your
config/application.rb
Enjoy!