RailsCasts Pro episodes are now free!

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"])