it should still fix some issue I'm new to rails and i'm sure this is a simple question but I haven't been able to find it. I have a product model and a sku model. A product has_many skus. I have a route setup to use a path like this: /products/1/skus/3 , Give that you have
resources :products do
this one helps. You have a two different problems that you need to solve separately. Depending on the API used to consume the image file, a file:// URI path may or may not be supported. So you'd want to make that a local path as explained in Convert file path to a file URI?:
string xmlPath = "file://C:/Temp/Foo.xml";
var xmlUri = new Uri(xmlPath); // Throws if the path is not in a valid format.
string xmlLocalPath = xmlUri.LocalPath; // C:\Temp\Foo.xml
seems to work fine I need to be able to combine two different Windows paths, both of which may be relative, into a single path (by applying the second as an extension of the first). It should not matter whether either path actually exists on the filesystem. Examples: