Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Jamie Buchanan's Profile

GitHub User: jamiebuchanan

Site: http://salesmaster.co.uk

Comments by Jamie Buchanan

Avatar

Why would you use

product = find_by_id(row["id"]) || new

over

product = find_or_initialize_by_id(row["id"])