mccalltd/AttributeRouting — Issue #23: AttributeRouting and T4MVC
Author: shapper
Created: 2011-11-22 02:05:49+00:00
State: open

Hello,

I am setting Attribute Routing (I installed the package) on a MVC 3 and I have the following:

namespace MVCSite.Areas.CMS.Controllers {

public partial class RoleController : Bontroller {

[GET("Roles")]
public virtual ActionResult Index() {
return View();
} // Index

}
}

And I have the following on my Home/Index view (I am using T4MVC):
@Html.ActionLink("Test", MVC.CMS.Role.Index());

But it renders as:
Test

Instead of
Test

I also tried to type on the URL CMS/roles but I keep having the 404 error.

What am I missing?

Thank you,
Miguel