#21 ✓resolved
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

  • Kieran P

    Kieran P April 8th, 2010 @ 09:50 AM

    • State changed from “new” to “open”

    Hey k3rni,

    Thanks for your interest in the gem. I haven't had a chance to test with Rails 3 yet. I welcome patches to fix it, otherwise, I'll try and get to this when I have the time.

    Regards
    Kieran

  • Kieran P

    Kieran P April 12th, 2010 @ 05:59 PM

    • State changed from “open” to “resolved”

    I've pushed rails 3 support, and released a new gem (0.1.3). Let me know if this doesn't fix you problems. I'll go ahead and resolve this ticket for now.

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