News for hackers. Stuff that matters.
Re:How to Wire Up Ruby on Rails and AngularJS as a Single-Pa... by klochner on Tuesday July 22, 2014 @02:32PM (#8070741)
Why is grunt needed? Is it because he's using Rails::API?

Most setups I've seen just let Rails serve the templates.

Re:How to Wire Up Ruby on Rails and AngularJS as a Single-Pa... by devNoise on Tuesday July 22, 2014 @08:48PM (#8072370)
grunt is the build tool for the Angular.js side of things. It is doing a lot of other html front end stuff to make the SPA.

Also grunt has a watch process that see code changes, it will then compile them and have the server get the browser to reload content to get the new version.

When this gets deployed to your production server, you will probably use the same server process that handles the Rails requests. grunt is for development only.