title: form_for - error accessing a controller variable in the view (rails 3)
body: <p>I have a very simple model/view but for some reason I can't seem to access the new record variable and therefore get the error:</p>
  
  <pre><code>undefined method `hash_for_checklists_path' for # Module:&lt;0x00000100f8b9b0&gt;
  </code></pre>
  
  <p>I've hit my head against a wall on this for several hours.  Can anyone see what I'm doing wrong?</p>
  
  <h1>Controller</h1>
  
  <pre><code>class ChecklistsController &lt; ApplicationController
    def new
      @title = "New Checklist"
      @checklist = Checklist.new 
    end
  [...]
  end
  </code></pre>
  
  <p>(incidentally my application.html.erb file has no problem getting the @title variable.)</p>
  
  <h1>View (new.html.erb)</h1>
  
  <pre><code>&lt;%= form_for @checklist do |f| -%&gt;
  </code></pre>
  
  <h1>Routes.rb</h1>
  
  <pre><code>  devise_for :users
  
    resources :checklist_item_categories, :as =&gt; 'item_categories' do
      resources :checklist_items
    end
  
    resources :checklist_categories do
      resources :checklists
    end  
  
    match 'checklists/new', :to =&gt; 'checklists#new'
  
    #pages
    get "pages/home"
    get "pages/contact"
  
    #checklist items
    get "checklist_items/new"
  
    #checklists
    get "checklists/new"
    get "checklists/edit"
    get "checklists/show"
    get "checklists/index"
  
    #categories
    get "abstract_categories/new"
  </code></pre>