Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Varun Vohra's Profile

GitHub User: vvohra87

Site: genii.in

Comments by Varun Vohra

Avatar

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.