#21 new
k3rni

Doesn't work in rails3 as a gem

Reported by k3rni | April 6th, 2010 @ 09:29 PM

Applies to: edge (0.1.2 as of right now), running on rails 3.0.0beta2, with bundler 0.9.16.

When used as a gem, tiny_mce cannot resolve Rails.root. Receives a nil value, stringifies that to get an empty string, and joins it to produce an invalid path (seen below).

Works fine as a plugin.

/home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/tiny_mce-4db4bc6ed77743c4772e20dff349fba2dd5c891b-master/lib/tiny_mce.rb:51:in `initialize': No such file or directory - /config/tiny_mce.yml (Errno::ENOENT)
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/tiny_mce-4db4bc6ed77743c4772e20dff349fba2dd5c891b-master/lib/tiny_mce.rb:51:in `open'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/tiny_mce-4db4bc6ed77743c4772e20dff349fba2dd5c891b-master/lib/tiny_mce.rb:51:in `install_or_update_tinymce'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/tiny_mce-4db4bc6ed77743c4772e20dff349fba2dd5c891b-master/lib/tiny_mce.rb:72
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:45:in `require'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:45:in `require'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:40:in `each'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:40:in `require'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:39:in `each'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler/runtime.rb:39:in `require'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/gems/bundler-0.9.16/lib/bundler.rb:73:in `require'
        from /home/r3dev/Source/praca/config/application.rb:8
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:60:in `require'
        from /home/r3dev/.rvm/gems/ruby-1.8.7-p249/bundler/gems/rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/rails/commands.rb:60
        from /home/r3dev/Source/praca/script/rails:10:in `require'
        from /home/r3dev/Source/praca/script/rails:10

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.

People watching this ticket

Tags

Pages