sebbacon/alaveteli — Issue #318: Error on csv upload
Author: skenaja
Created: 2012-01-07 00:30:49+00:00
State: open
Labels: bug, wtdk

Site: WDTK
Version: 0.3

csv output from Google Docs. Format as per #60

```text
#ID,name,request_email,home_page,tag_string
1,"Newick House School, Burgess Hill",office@newickhouse.w-sussex.sch.uk,http://www.newickhouse.co.uk/,west_sussex
```

"Dry run" is succesful, but running for real gives this error message:

```text
Error message:

NameError in Admin public bodyController#import_csv

undefined local variable or method `available_locales' for #

RAILS_ROOT: /data/vhost/www.whatdotheyknow.com/alaveteli
Application Trace | Framework Trace | Full Trace

/data/vhost/www.whatdotheyknow.com/alaveteli/app/controllers/admin_public_body_controller.rb:169:in `import_csv'
/data/vhost/www.whatdotheyknow.com/alaveteli/app/controllers/application_controller.rb:80:in `record_memory'

Request

Parameters:

{"csv_file"=>#,
"commit"=>"Upload",
"authenticity_token"=>"YOGexWHvHL682jIcZyqF2aPKD2LlpS8qf1XTq7ni08c=",
"tag"=>"school"}

Show session dump
Response

Headers:

{"Vary"=>"Cookie",
"Content-Type"=>"",
"Cache-Control"=>"no-cache"}
```