title: How do I use the DropDownList in ASP.NET MVC 3
body: <p>I am new to MVC and am trying to populate a DropDownList in my view with a list of 'rules' from my controller.  When I do it the way listed, I just get a dropdownlist with a bunch of items that say CellularAutomata.Models.Rules.  I know I am doing this incorrectly, I'm just wondering how I actually get it to show the rule description for each rule in the dropdownlist.</p>
  
  <p>I have a Model</p>
  
  <pre><code>public class Rule
  {
      public int ID { get; set; }
      public int Name { get; set; }
      public string Description{ get; set; }
  
      public Rule(int name, string description)
      {
          Name = name;
          Description = description;
  
      }
      public Rule()
      {
          Name = 0;
          Description = "";
      }
  }
  </code></pre>
  
  <p>A Controller</p>
  
  <pre><code>    public ActionResult Index()
      {
          var rules = from rule in db.Rules
                      select rule;
  
          return View(rules.ToList());
      }
  </code></pre>
  
  <p>And a view</p>
  
  <pre><code>@model IEnumerable&lt;CellularAutomata.Models.Rule&gt;
  
  @{
      ViewBag.Title = "Index";
  }
  &lt;h2&gt;Index&lt;/h2&gt;
  
  &lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DropDownList("Test", new SelectList(Model))
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>