title: How to Configure Areas in ASP.NET MVC3
body: <p>Is anyone knows how to Configure Areas in ASP.NET MVC3.
  I read an article about Areas in <a href="http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx">here</a>.
  But that article is not based on MVC3.
  In MVC3 there is no function named <code>MapRootArea</code> in <code>RouteCollection routes</code> which is found in Global.asax</p>
  
  <pre><code>routes.MapRootArea("{controller}/{action}/{id}", 
                   "AreasDemo", 
                    new { controller = "Home", action = "Index", id = "" });
  </code></pre>
  
  <p>When i create a New Area using MVC3, i got a class of that area which inherited from <code>AreaRegistration</code> and look like following: (here Blogs is the area name) </p>
  
  <pre><code>public class BlogsAreaRegistration : AreaRegistration
  {
      public override string AreaName
      {
          get
          {
              return "Blogs";
          }
      }
  
      public override void RegisterArea(AreaRegistrationContext context)
      {
          context.MapRoute(
              "Blogs_default",
              "Blogs/{controller}/{action}/{id}",
              new { action = "Index", id = UrlParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p>Would anyone please help me how do i configure area in MVC3. Any kind of link would be helpful also.</p>