Open phinjensen opened 6 years ago
original author: DanV
date: 2012-07-14T16:39:24-04:00
I am having a few difficulties trying to get this to work. My main goal is to simply import a few users. It would be a nice second step to include the roles the users have.
I ran into another issue:
https://github.com/stephskardal/rails_admin_import/issues/6
That I have locally patched over.
My current problem is I cannot import a simple CSV user file:
email,name,password,password_confirmation,confirmed_at teleservices+test_one@gmail.com,test one,PASSWORD,PASSWORD,2012-07-14 13:00:00 teleservices+test_two@gmail.com,test two,PASSWORD,PASSWORD,2012-07-14 13:00:00 teleservices+test_three@gmail.com,test three,PASSWORD,PASSWORD,2012-07-14 13:00:00
I receive the following error for each row:
Errors before save: . Errors: Password can't be blank.
Thanks for any help you can send...
original author: Àsgeir Gunnarsson
date: 2013-03-01T10:09:51-05:00
DanV.
I have the same issue found any solution to this?
original author: DanV
date: 2013-03-01T14:40:01-05:00
I had to leave this on the back burner for now. Though I intend to get back to it. I really think rails_admin is incomplete without an import abaility. Even if it is only individual table level.
original author: Michael Atef
date: 2015-08-10T12:00:45-04:00
You can use csv with relation for example if you have employee model that belongs to department .. in your csv header instead of setting the header filed to 'id [Employee]' you need to reamove 'id' ... i.e. just set the column header name to [Employee] and in the rails admin tool set the Related fields mapping to id ... this works for me
Comments for https://www.endpointdev.com/blog/2012/02/railsadmin-import-part-2/ By Steph Skardal
To enter a comment: