Skip to content

Commit

Permalink
Fixing for Rails 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi K. Vidal committed Oct 26, 2008
1 parent c6decd9 commit fcf8fbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/fckeditor_controller.rb
Expand Up @@ -133,7 +133,7 @@ def current_directory_path
end

def upload_directory_path
uploaded = request.relative_url_root.to_s+"#{UPLOADED}/#{params[:Type]}"
uploaded = ActionController::Base.relative_url_root.to_s+"#{UPLOADED}/#{params[:Type]}"
"#{uploaded}#{params[:CurrentFolder]}"
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fckeditor.rb
Expand Up @@ -35,7 +35,7 @@ def fckeditor_textarea(object, field, options = {})
inputs = "<textarea id='#{id}' #{cols} #{rows} name='#{object}[#{field}]'>#{value}</textarea>\n"
end

js_path = "#{request.relative_url_root}/javascripts"
js_path = "#{ActionController::Base.relative_url_root}/javascripts"
base_path = "#{js_path}/fckeditor/"
return inputs <<
javascript_tag("var oFCKeditor = new FCKeditor('#{id}', '#{width}', '#{height}', '#{toolbarSet}');\n" <<
Expand Down

0 comments on commit fcf8fbe

Please sign in to comment.