Tag: angular template

Rails上的角度模板

我正在使用angular-rails-templates gem。 我的/app/assets/javascripts有一个名为templates的文件夹,我将它包含在application.js : //= require_tree ./templates 在模板内部有一个带有 hello world 的test.html文件。 出于某种原因,当我在控制台中注销$templateCache.info() (使用app.run )时,我找不到test.html : 对象{id:“templates”,大小:0}

AngularJS和Rails路由错误

我正在关注教程: https : //thinkster.io/angular-rails/ 当我进入该部分时:将前端与资产管道集成,事情就会破裂; 网站陷入无限循环,并不断产生相同的错误。 我检查并重新检查了每一步。 请有人帮忙: 错误: Started GET “/home/_home.html” for ::1 at 2015-04-17 11:55:43 -0400 ActionController::RoutingError (No route matches [GET] “/home/_home.html”): actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call’ web-console (2.1.2) lib/web_console/middleware.rb:37:in `call’ actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call’ railties (4.2.0) lib/rails/rack/logger.rb:38:in `call_app’ railties (4.2.0) lib/rails/rack/logger.rb:20:in `block in call’ activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in `block in tagged’ activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in […]