You can define "scheme" (more correct: protocol), host and port by defining asset_host in your application configuration, though this definition will be used for all your asset paths.
Refering to the Rails API documentation on Asset Tag Helpers request informations can be used:
ActionController::Base.asset_host = Proc.new { |source, request|
"#{request.protocol}#{request.host_with_port}"
}
If you need different values for different types of assets, you can define filter criteria, e.g.:
ActionController::Base.asset_host = Proc.new { |source|
if source.starts_with?('/images')
"http://images.example.com"
else
"http://assets.example.com"
end
}