spohlenz / tinymce-rails

Integration of TinyMCE with the Rails asset pipeline
Other
815 stars 256 forks source link

ActionView::Template::Error (undefined method `paths' for nil:NilClass): #250

Open glappen opened 5 years ago

glappen commented 5 years ago

Hello, I am using tinymce-rails on a Rails 5.1 project that I deploy to production using docker. There are not problems in development, but when I deploy to production, i get this error:

ActionView::Template::Error (undefined method `paths' for nil:NilClass):

I have tried setting config.tinymce.install = :compile (as well as :copy) in application.rb and neither solves the issue. Since I'm using the tinymce-rails gem within an engine, I also tried setting config.tinymce.intall in my engine's engine.rb file, but still no luck. Any ideas on how to resolve this would be greatly appreciated.

Thanks!

derstoiker commented 2 years ago

Hello we have the same problem with rails 5.1 and tinymce 4.1.10. May this is a problem because of changed behaviour of sprockets in rails?! https://github.com/rails/sprockets-rails/issues/237 rails.application assets is normally nil in production now

@tinymce-team@ do you have some idea what to do?