acts_as_textiled and RedCloth on shared hosting
Reported by Ralph | June 13th, 2007 @ 08:48 AM
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
-
Chris Wanstrath June 13th, 2007 @ 08:48 AM
- State changed from new to resolved
(from [260]) acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป