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.

acts_as_textiled and RedCloth on shared hosting

#35

The latest acts_as_textiled works fine on my local Locomotive installation. But after deploying on shared hosting, there seems to be a problem with redcloth. RedCloth is installed on the shared hosting server, too, but the application refuses to start. This is the corresponding error in mongrel.log:

** Starting Rails with production environment...

[ruby_path]/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- RedCloth (MissingSourceFile)

from [ruby_path]/rubygems/custom_require.rb:27:in `require'

from /home/user/applications/appname/releases/20070613092355/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'

from /home/user/applications/appname/releases/20070613092355/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in

[...]

The problem does not occur after commenting out "require 'RedCloth'" in the init.rb file of the plugin. acts_as_textiled does work fine even though this line has been commented out.

The problem does also disappear if you replace the original require by:

require_library_or_gem "redcloth" unless Object.const_defined?(:RedCloth)

EDIT: versions:

Rails: 1.2.3 on both systems

Ruby: 1.8.6 on local Locomotive, 1.8.5 on shared hosting

Reported by Ralph · June 13th, 2007 @ 08:48 AM

State: resolved
Milestone: none
Assigned to: Chris Wanstrath Chris Wanstrath

Activity

  1. Chris Wanstrath
    Chris Wanstrath
    • State changed from new to resolved

    (from [260]) acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]

    http://require.errtheblog.com/pl...

    June 13th, 2007 @ 08:48 AM

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.