search for: import_asset

Displaying 1 result from an estimated 1 matches for "import_asset".

Did you mean: import_assets
2011 Apr 06
1
Missing "+@" method
I''m working on getting some data imported to my database from a CSV file. Here''s the code: def import_assets(path) r = 0 CSV.foreach(path) do |row| r++ b = Asset.new #populate the fields, etc b.save end puts "Imported #{r} assets." end My other import methods worked fine for all my other models, but when I run this one, it throws a NoMethodError on the line where I crea...