activeadmin-plugins / active_admin_import

:paperclip: active_admin_import is based on activerecord-import gem - the most efficient way to import for ActiveAdmin
http://activeadmin-plugins.github.io/active_admin_import
MIT License
184 stars 101 forks source link

Using tab as delimiter results in "Error: undefined method" #132

Closed yaneeka closed 7 years ago

yaneeka commented 7 years ago

When I set csv_options: { col_sep: "\t" } and use a file with tabs, I get an error such as "Error: undefined method `locationname=' for # Did you mean? location=", where location and name are individual columns. Any idea what the issue might be?

Fivell commented 7 years ago

@yaneeka , please add full backtrace to your issue

yaneeka commented 7 years ago

@Fivell, can you tell me where to find this? The output I listed above is what shows up in both the rails server output and on the activeadmin page.

Fivell commented 7 years ago

@yaneeka , do you see sort of this ? screen shot 2016-03-09 at 9 35 48 pm

yaneeka commented 7 years ago

@Fivell, this is displayed after the import is attempted (I have my back set to :index):

screen shot 2017-03-16 at 11 49 30 pm

Fivell commented 7 years ago

@yaneeka , I will be able to check this on weekend, if this problem is about tab delimiter.

yaneeka commented 7 years ago

@Fivell, thanks, appreciate it.

Fivell commented 7 years ago

@yaneeka , added feature test and fixed in master