Some think that using routes in ASP.NET MVC, are a little to noisy and likes the Rails way better.
home_url
@Html.RouteLink("Home", "Root")
A bright individual, Rob Conery, wanted to change this a wrote a blog post called, Referencing Routes in ASP.NET MVC The Rails Way. Basically it allows you to use routes in ASP.NET MVC this way
@Routes.home_url
// And set route variables like this
@Routes.home_url(new { id = "stuff" });
No comments:
Post a Comment