RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vvohra87
Site: genii.in
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!
Super.
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!
Super.