i have load data spree application. spree makes use of rails engines.
all examples use pretty print or csv destinations, want use spree models in destination, eg. spreemodel.create!(row)
i tried rails runner "exec('kiba db/etl/convert-csv.etl')"
, error:
db/etl/convert-csv.etl:4:in `parse': uninitialized constant kiba::context::spree (nameerror)
i've tried within rails console, without success.
author of kiba here. using :-)
since looks potentially asked question, wrote complete blog post providing 2 possible answers:
how run kiba in rails environment
let me know if indeed works you!
Comments
Post a Comment