17 Mar '12, 3pm

What do y'all think about Rails' AR transactions? Something for Eloquent 2?

are protective blocks where SQL statements are only permanent if they can all succeed as one atomic action. The classic example is a transfer between two accounts where you can only have a deposit if the withdrawal succeeded and vice versa. Transactions enforce the integrity of the database and guard the data against program errors or database break-downs. So basically you should use transaction blocks whenever you have a number of statements that must be executed together or not at all.

Full article: http://api.rubyonrails.org/classes/ActiveRecord/Transacti...

Tweets

First Look: TaylorMade ATV Wedges -- They're on to something here boys... - #wrx

First Look: TaylorMade ATV Wedges -- They're on...

golfwrx.com 16 Mar '12, 7pm

Ok guys. I'm a TM fan. Let's get that out of the way first. But at the same time, I like to think that I give all companie...

Rails 3.2.2 is available, and contains two impo...

weblog.rubyonrails.org 15 Mar '12, 8pm

Rails 3.2.2 has been released. This release contains various bug fixes and two important security fixes. All users are rec...

"Object on Rails is for every developer who wan...

mislav.uniqpath.com 17 Mar '12, 1pm

Avdi Grimm—the author of one of my favorite Ruby books, Exceptional Ruby —just published his new notebook on thoughtful an...

omgbloglol - The Path to Rails 3: Introduction:

omgbloglol - The Path to Rails 3: Introduction:

omgbloglol.com 11 Mar '12, 9am

The Path to Rails 3: Introduction Wow, over half a year with no blog post. That may be a new record for blog laziness for ...

How I learned to test my Rails applications, Pa...

everydayrails.com 13 Mar '12, 2am

How I learned to test my Rails applications, Part 1: Introduction March 12, 2012 Ruby on Rails and automated testing go ha...