RailsCasts Pro episodes are now free!

Learn more or hide this

Varun Vohra's Profile

GitHub User: vvohra87

Site: genii.in

Comments by Varun Vohra


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!