http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/
1. Adding Gems
Gem ' sprockets ', ' 2.12.3 ' #默认sporckets的版本有bug
2. Code in App/assets/javascripts/ng-app/app.js
$locationProvider. Html5mode (True); This line needs to be commented
3. There are three ways of Bower
(1) Bower.json http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/
(2) Bowerfile http://angular-rails.com/bootstrap.html
(3) Bower Init https://thinkster.io/angular-rails/
4. Rails route is available in one of two ways
(1) Yield http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/
(2) No yield https://thinkster.io/angular-rails/
Experience:
Angluar and rails combine some nondescript, two-level routing, two-level local templates that are complex, and the features of angular and rails are not fully functioning
Angluar is the most appropriate way to use it alone, with very simple scripts such as node. js
Angular+rails Integrated Combat