title: Rails error "NoMethodError" - My first ruby app
body: <p>I am absolutely and totally new to rails, so the answer is probably very simple. Here goes:</p>
  
  <p>My page is generating this error</p>
  
  <pre>NoMethodError in Tasks#new
  Showing app/views/tasks/new.erb where line #3 raised:
  
  undefined method `tasks_path' for #
  </pre>
  
  <p>Here is the view:</p>
  
  <pre><code>&lt;% form_for(@task) do |f| %&gt;
      &lt;%= f.error_messages %&gt;
  
      &lt;%= f.label :description %&gt;:
      &lt;%= f.text_field :description %&gt;&lt;br /&gt;
  
      &lt;%= f.label :priority %&gt;:
      &lt;%= collection_select(:news, :priority_id, Priority.find(:all), :id, :description) %&gt;&lt;br /&gt;
  
      &lt;%= f.submit "Add Task" %&gt;
  
  &lt;% end %&gt;
  </code></pre>
  
  <p>The controller:</p>
  
  <pre><code>class TasksController &lt; ApplicationController
      def index
          @all_tasks = Task.find(:all, :order =&gt; :id)
      end
  
      def new
          @task = Task.new
      end ...(more)
  </code></pre>
  
  <p>and the model:</p>
  
  <p>I can't see a problem, but like I said, I'm clueless so far.
  Thanks!</p>
  
  <pre><code>class Task &lt; ActiveRecord::Base
      validates_presence_of :description
  
      belongs_to :priority
      has_and_belongs_to_many :staff
      has_and_belongs_to_many :catagory
  
  end
  </code></pre>