Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Doesn't work in rails3 as a gem

#21

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

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

State: resolved
Milestone: none
Assigned to: Kieran P Kieran P

Activity

  1. Kieran P
    Kieran P

    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

    April 8th, 2010 @ 09:50 AM

  2. Kieran P
    Kieran P
    • 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.

    April 12th, 2010 @ 05:59 PM

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.