spohlenz/tinymce-rails — Issue #30: Precompiled assets in production mode
Author: davidkennedy-examtime
Created: 2012-01-07 16:58:58+00:00
State: open

In development mode, TinyMCE is working great, but in production mode, I seem unable to load precompiled TinyMCE assets. However, the assets _are_ in my public/assets directory as expected. The page with the TinyMCE textareas does not render any textareas.

__Detail:__ Command and logs:

bin/rake assets:precompile
RAILS_ENV=production bin/rails server thin

Started GET "/assets/tinymce/themes/advanced/editor_template.js?3.4.7" for 10.0.2.2 at 2012-01-07 16:09:06 +0000
Served asset /tinymce/themes/advanced/editor_template.js - 404 Not Found (4ms)
ActionController::RoutingError (No route matches [GET] "/assets/tinymce/themes/advanced/editor_template.js"):

ls -l public/assets/tinymce/themes/advanced/editor_template.js
-rw-r--r-- 1 dkennedy dkennedy 25166 2012-01-07 16:06 public/assets/tinymce/themes/advanced/editor_template.js

I am unclear if this is a routing issue on my part, but I don't see anything in the documentation about needing to tweak `config/routes`

__Integration:__ as per instructions: Gem installed via bundler, in my `app/assets/javascripts/application.js` I have

//= require tinymce-jquery

On each page I require a page specific `manifest.js` which includes several files, including one with the TinyMCE javascript hook customised for my preferred buttons _etc_; I can see this `manifest.js` in my `public/assets`.

__Versions:__ I'm using Rails 3.1.0, and Ruby 1.9.3. I've cleared out all gemsets _etc_, and have tried building the `tinymce-rails` Gem directly from GitHub.

Any advice?