active_admin_import
active_admin_import copied to clipboard
:paperclip: active_admin_import is based on activerecord-import gem - the most efficient way to import for ActiveAdmin
When exporting data via CSV from the `active_admin` admin and your environment locale is set to something other than English, like this in an initializer: ``` I18n.default_locale = :es ```...
Some time ago, I wrote a plugin for active admin to handle large excel uploads. The problem with the large uploads is that it blocks the main thread if we...
I am trying to insert ids of few number values from one table (crosswordcores) to another table (cwdrilldownimports) but the ids are not getting inserted and number values remain same....
Just got an idea - put a link to template csv file in the upload form. Default attribute set can be taken from model (`resource.resource_class.attribute_names - ["created_at", "updated_at"]`). And provide...
…e active admin page has the 'belongs_to' statement. I needed to implement this change in order to get a reference of the parent resource within a proc passed to the...
Hey there! I would like the add a CSV line number to the error messages in the case of large imports. Any ideas on how I could do that?
Is there any way to import a has_many or has_and_belongs_to_many relationship? A collection of ids? I can't figure out how to build the csv also. Thanks for this great gem.
Array conversion from [] to {} for postgres
If csv file consists empty columns like this ``` ,col_1,col_2,col_3,col_4,col_5,col_6 ,1,112,1,100,130,4,8 ``` it rases error `Error: undefined method 'underscore' for nil:NilClass` Possible solution is to change prepare_headers method in Importer...
this PR would allow us something like ```ruby active_admin_import( after_batch_import->(importer) do ... # possible some logging for current_user Log.create!(user: importer.current_user) ... end ) ```