{"id":1039,"date":"2022-08-30T15:11:22","date_gmt":"2022-08-30T15:11:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/09\/uploading-and-import-csv-to-rails-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:11:22","modified_gmt":"2022-08-30T15:11:22","slug":"uploading-and-import-csv-to-rails-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/uploading-and-import-csv-to-rails-collection-of-common-programming-errors\/","title":{"rendered":"uploading and import csv to rails-Collection of common programming errors"},"content":{"rendered":"<p>i have followed this tut enter link description here, though i seem to have encountered a few issues. the problem i am getting is<\/p>\n<pre><code>NameError\n\nundefined local variable or method `map' for #\n<\/code><\/pre>\n<p>which i believe is related to the routes.rb<\/p>\n<pre><code>map.resources :imports\n  map.import_proc '\/import\/proc\/:id', :controller =&gt; \"imports\", :action =&gt; \"proc_csv\"\n<\/code><\/pre>\n<p>im using Ruby 1.9.3, Rails 3.2.3<\/p>\n<p id=\"rop\"><small>Originally posted 2013-11-09 23:17:15. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>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&#8217; for # which i believe is related to the routes.rb map.resources :imports map.import_proc &#8216;\/import\/proc\/:id&#8217;, :controller =&gt; &#8220;imports&#8221;, :action =&gt; &#8220;proc_csv&#8221; im using Ruby 1.9.3, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1039","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1039"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1039\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}