title: Mvc 3 How to list all available routes?
body: <p>How does:</p>
  
  <pre><code>@Html.ActionLink("MyText","Index","Home")
  </code></pre>
  
  <p>Translates to:</p>
  
  <pre><code>&lt;a href="/Home"&gt;MyText&lt;/a&gt;
  </code></pre>
  
  <p>Whereas before it was printing</p>
  
  <pre><code>&lt;a href="/Home/Index"&gt;MyText&lt;/a&gt;
  </code></pre>
  
  <p>After the I added a default action for all controller via:</p>
  
  <pre><code>        routes.MapRoute(
              "DefaultActionToIndex",
              "{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional });
  </code></pre>
  
  <p>It seems to me that the helper method does more than print whatever was passed in but is able to resolve the route dictionary and figure out that "Index" is not necessary since it was set as default.</p>
  
  <p>The question is how?</p>