Forum: Ruby on Rails Error On relative_url_root

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Alan G. (Guest)
on 2009-03-27 01:10
(Received via mailing list)
I'm attempting to mash together Adva CMS' Fckeditor and the Fckeditor
plugin provided by Scott Rutherford.

The Scott's plugin has a controller than handles the Fckeditor file
upload and browse, but it errors out on the following lines.

   def upload_directory_path
     uploaded = request.relative_url_root.to_s+"#{UPLOADED}/

If I remove the request.relative_url_root.to_s it works fine.

   def upload_directory_path
     uploaded = "#{UPLOADED}/#{params[:Type]}"

How do I make this go away without editing the plugin code? I found an
article that says I'm supposed to set it in enviroment.rb but then I
get errors that constants are not defined/found.

Alan G.
This topic is locked and can not be replied to.