I'm trying to convert from Razor to Spark.
Here is my controller:
public class HomeController : Controller
{
public ActionResult Index()
{
return View("~/Views/Account/Index");
}
}
But Spark gives the following error:
The view '~/Views/Account/Index' or its master was not found or no view engine supports the searched locations. The following locations were searched:
Home\~/Views/Account/Index.spark
Shared\~/Views/Account/Index.spark
Home\~/Views/Account/Index.shade
Shared\~/Views/Account/Index.shade
Why doesn't it realise that I've given it an absolute relative path?