uploading and import csv to rails-Collection of common programming errors

i have followed this tut enter link description here, though i seem to have encountered a few issues. the problem i am getting is

NameError

undefined local variable or method `map' for #

which i believe is related to the routes.rb

map.resources :imports
  map.import_proc '/import/proc/:id', :controller => "imports", :action => "proc_csv"

im using Ruby 1.9.3, Rails 3.2.3

Originally posted 2013-11-09 23:17:15.