I like using this structure:
rails-app/
--app/
--views/
--js/
--app/
--test/
--Gruntfile.js
--public
Here’s how I set it up:
- rails new rails-app
- cd rails-app/app/views
- mkdir js
- cd js
- yeoman init ember
Then edit Gruntfile.js to change “output: ‘dist'” to “output: ‘../../../public'”
After that, “yeoman build” or “yeoman build:dist” will output to the Rails /public folder.
During dev, you can still use “yeoman server” to run yeoman in development mode, so any change you make will automatically be visible in the browser.
Yeoman is great!