title: groovy.lang.MissingPropertyException
body: <p>I have been trying to use dynamic scaffolding in groovy on grails to see the list of the Tasks. My domain class is as follows </p>
  
  <pre><code>package projecttracker
  
  import java.util.Date;
  
  class Task 
  {
      String name
      String description
      Date dueDate
  
      String toString() {
          "${name}"
      }
  
      static belongsTo = [enduser: EndUser ,project: Project]
  
      static constraints = {
  
          name()
          description()
          dueDate() 
      }
  }
  </code></pre>
  
  <p>My controller class is as follows:</p>
  
  <pre><code>package projecttracker
  
  class TaskController {
      def scaffold =true 
  
      def index() {
          redirect(action:list)
      }
  }
  </code></pre>
  
  <p>But, whenever I call the index method of the Task controller,  the following error occurs: </p>
  
  <pre><code>URI :     /ProjectTracker/task/index
  Class:    groovy.lang.MissingPropertyException
  Message:  No such property: list for class: projecttracker.TaskController Possible solutions: edit, flash, class
  Around line 7 of grails-app\controllers\projecttracker\TaskController.groovy
  4:  def scaffold =true 
  5:
  6:    def index() {
  7:      redirect(action:list)
  8:  }
  9:}
  </code></pre>
  
  <p>Can someone tell me, how to define the list method here? Thanks in advance.</p>