spohlenz / tinymce-rails

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

How do I use tinymce-rails without asset-precompile because I use Jammit instead of Sprockets? #94

Closed vishaldpatel closed 11 years ago

vishaldpatel commented 11 years ago

Hi there, I was wondering how to use this gem without using sprockets because I'm using Jammit to deploy my assets. Right now I get the following error during deployment:

* [out :: dev.dd.com] Don't know how to build task 'assets:precompile' * [out :: dev.dd.com] /var/www/dev.dd.com/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task_manager.rb:49:in []' ** [out :: dev.dd.com] /var/www/dev.dd.com/shared/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:339:in[]' \ [out :: dev.dd.com] /var/www/dev.dd.com/shared/bundle/ruby/1.9.1/gems/tinymce-rails-3.5.8.1/lib/tasks/tinymce-assets.rake:3:in `<top (required)>'

Thanks in advance! I'd appreciate any help / thoughts on this.

spohlenz commented 11 years ago

Unfortunately I don't really know what is required in order to make the gem Jammit compatible, but will happily accept any pull request to add compatibility. Whether that's possible or not, I'm honestly not sure.

I'm curious, is there a particular reason for you to use Jammit rather than Sprockets?

vishaldpatel commented 11 years ago

The current system is being upgraded from Rails 2.x. It uses Jammit for asset management, which works well. Jammit does asset packaging differently than Sprockets, and is compatible with Rails 3.x. The preference was to change as little as is needed for the transition to Rails 3.x, so I was trying to just upgrade the gems or use the Rails 3 alternative Gems. Ultimately however, I this solved the issue by removing the Gem and installing TinyMCE on it's own, since our use of the editor is fairly focused and requires very little management.

spohlenz commented 11 years ago

I'm glad you have found a solution. Sorry it has taken me so long to respond to this issue.