RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vvohra87
You know this is awesome sauce.
The most valuable thing however was
product.attributes = row.to_hash.slice(*accessible_attributes)
The thought is simple, it's mass assignment basics but would have never thought of it when importing excel files!