#35 ✓resolved
Ralph

acts_as_textiled and RedCloth on shared hosting

Reported by Ralph | 2007-06-13 08:48:48 UTC

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

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 ยป

Shared Ticket Bins

People watching this ticket

Pages