Error On relative_url_root

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs