pitr / angular-rails-templates

Use your angular templates with rails' asset pipeline
https://rubygems.org/gems/angular-rails-templates
MIT License
566 stars 169 forks source link

Uncaught SyntaxError: Unexpected token < #139

Closed normancapule closed 8 years ago

normancapule commented 8 years ago

Hello! Any help on this would be appreciated :)

I'm making a boilerplate using rails 5.0rc1 + angular 1.5. Some screenshots of what I see in the google chrome console:

screen shot 2016-06-17 at 11 59 40 am screen shot 2016-06-17 at 11 59 53 am

Also here is the repo of my boilerplate: https://github.com/normancapule/boilerplate1

pitr commented 8 years ago
diff --git a/config/application.rb b/config/application.rb
index c2263cb..ffd5933 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -9,7 +9,7 @@ Bundler.require(*Rails.groups)
 module Boilerplate1
   class Application < Rails::Application
     MultiJson.engine = :Oj
-    config.angular_templates.inside_paths   = [Rails.root.join('client/src')]
+    config.angular_templates.inside_paths   = ['client/src']
     config.middleware.delete "ActionDispatch::Cookies"
     config.middleware.delete "ActionDispatch::Session::CookieStore"
     config.middleware.delete "ActionDispatch::Flash"
normancapule commented 8 years ago

thank you so much!