title: Model does not contain a definition for 'input'
body: <p>I am trying to take what a user inputs in a textbox from the view and add it to a String in the model.  Errors I am getting are: 
  'System.Collections.Generic.IEnumerable' does not contain a definition for 'input' </p>
  
  <p>and </p>
  
  <p>no extension method 'input' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?)</p>
  
  <p>Inside my View:</p>
  
  <pre><code>@using (Html.BeginForm("Summary", "inquire", FormMethod.Post))
  {
     @Html.TextBoxFor(model =&gt; model.input)
  </code></pre>
  
  <p>Model:</p>
  
  <pre><code>namespace myProj.Models
  {
  public class myModel
  {
      [RegularExpression("([1-9][0-9]*)")]
      [StringLength(9, MinimumLength = 3)]
      public string input { get; set;}
    ..
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code> public ActionResult Summary(String input)
      {
          ..
  
          if (Request.HttpMethod.ToLower().Equals("get"))
          {
              return View();
          }
          else
          {
              ..
  
              return View(model);
          }
  
      }
  </code></pre>
  
  <p>Issue I am having in the view with the TextBoxFor line in my view, if I put @model myProj.Models.myModel at the top I can get it to work, however I need to use @model IEnumerable when I want to use foreach and display the data I get from this input to a table.</p>
  
  <p>I feel it's something simple I am missing, but i fail to see it.</p>