A
A
alexnotonfire2016-01-26 18:39:32
Ruby on Rails
alexnotonfire, 2016-01-26 18:39:32

Why does tinymce work in development but crash in production?

I am using the tinymce-rails gem in my Rails 4.2 application. This works on my development server, but in production the tinymce text field view crashes with a 500 error:

Rendered articles/new.slim within layouts/application (2.2ms)
Completed 500 Internal Server Error in 8ms (ActiveRecord: 2.3ms)
ActionView::Template::Error (undefined method `paths' for nil:NilClass):

Any ideas what could be causing this? (as I mentioned it works fine on localhost)
I have the 'tinymce-rails' gem in the Gemfile and I have configured config/tinymce.yml.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeniy Trebin, 2016-01-26
@alexnotonfire

It's done?
https://github.com/spohlenz/tinymce-rails#asset-co...

C
caution, 2016-01-26
@caution

Because in production you need to compile assets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question