Closed itkin closed 10 years ago
Are you running the latest version of tinymce-rails (4.0.2)? This issue existed in 4.0.0 and 4.0.1 but should be fixed in 4.0.2.
If you are running 4.0.2, could you please post the output of bundle list
?
I have an issue with it too. Just upgraded to 4.0.2 and I get this error;
rake aborted!
undefined method `each_key' for false:FalseClass
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_manifest.rb:41:in `each'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_installer.rb:26:in `cleanup_assets'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tinymce/rails/asset_installer.rb:13:in `install'
/var/www/rec_cims/shared/bundle/ruby/2.0.0/gems/tinymce-rails-4.0.2/lib/tasks/tinymce-assets.rake:12:in `block in <top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
@craigsheen What's in your public/assets/manifest.yml
file after running rake assets:precompile
(ignoring the errors)? Do you have any other asset-related gems installed?
It's empty after running it. For the record im running on rails 4. Should have probably mentioned that.
No others no.
Maybe its just something im doing.
Is that manifest.yml
possibly a remnant from a previous Rails version? In Rails 4, it should generate a manifest-<random-hash>.json
file instead. However tinymce-rails
will attempt to update the YAML manifest if it finds it.
Try simply deleting the manifest.yml
file (or your whole assets folder). If that doesn't work, it seems like something else may be incorrectly generating it.
Ah that does fix the issue. It does then create an issue with Capistrano, as that then looks for a manifest.yml file (which is why I had a blank one there) but that is more an issue with that.
Thanks for your help.
With ruby ruby-2.0.0-p195 rails 3.2.13 => precompile of tinymce.js fail after timeout, removing the gems make everything work