Writing Rails-flavored AngularJS

added by JavaScript Kicks
9/26/2014 3:47:47 PM


When I think about Ruby on Rails and AngularJS in the same codebase, I kind of cringe. After spending more than a year trying to reconcile how Rails plays with Angular, not only have I been unsuccessful, but I have not been satisfied with any of the suggested solutions. There is a ton of material on the numerous Rails hacks you should employ so that Rails and AngularJS feel compatible; however, I’m beginning to wonder whether this problem is being approached from the wrong direction. Instead, how can we hack AngularJS so that it plays nice with Rails?