01 Oct '13, 2pm

@clemensk yep, race conditions can happen because of how rails validators works

Using this validation method in conjunction with ActiveRecord::Validations#save does not guarantee the absence of duplicate record insertions, because uniqueness checks on the application level are inherently prone to race conditions. For example, suppose that two users try to post a Comment at the same time, and a Comment’s title must be unique. At the database-level, the actions performed by these users could be interleaved in the following manner:

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

Tweets

Why a Sub-2:00 Marathon Won't Happen Soon

runnersworld.com 01 Oct '13, 3pm

"[T]he currently best runners on the planet are hovering around 59-minutes for half the distance that people expect them t...

Using HTTP Status Codes for Rails AJAX Error Ha...

intridea.com 01 Oct '13, 4am

A problem that often arises in AJAX -based web applications is how to handle it when things go wrong. The user should be i...

Guest Blogging Works For Me! by @mattschmoldt

Guest Blogging Works For Me! by @mattschmoldt

searchenginejournal.com 02 Oct '13, 3pm

In May, there was an excellent post featured at moz entitled, “How Guest Bloggers are Sleepwalking Their Way into Penaltie...

Why a sub-2:00 marathon won't happen anytime soon:

runnersworld.com 01 Oct '13, 5pm

"[T]he currently best runners on the planet are hovering around 59-minutes for half the distance that people expect them t...

Why a Sub-2:00 Marathon Won't Happen Soon via @...

runnersworld.com 01 Oct '13, 11pm

"[T]he currently best runners on the planet are hovering around 59-minutes for half the distance that people expect them t...

Congested city driving conditions put strain on car engines #greenenergy

Congested city driving conditions put strain on...

thegreencarwebsite.co.uk 02 Oct '13, 9am

Modern driving conditions are putting extra wear on our cars’ engines, new research suggests, as the true extent of stop a...

stumbled cross this - helpful - URL Validation ...

intridea.com 02 Oct '13, 8pm

After doing a quick Google Search I realized that everyone might not know about a great way to do URL validation in Rails....

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

Speed post-race recovery with this squat that stretches your back, hips, quads and calves:

Speed post-race recovery with this squat that s...

runnersworld.com 02 Oct '13, 4am

Squat wide over toes that point slightly outward (as in the photo) or take a tighter squat with your toes facing straight ...

How to integrate AngularJS with Rails 4

rubyflow.com 01 Oct '13, 9pm

How to integrate AngularJS with Rails 4 Posted by Michal Kwiatkowski on October 01, 2013 — 0 comments Lots of practical ti...

No Athlete is glad to miss a race, by Justin La...

runblogrun.com 27 Sep '13, 3pm

NO ATHLETE IS GLAD TO MISS A RACE, by Justin Lagat When an athlete pulls out of a race, especially a few days to the race ...

Android ecosystem takes the baton from Apple iP...

digitimes.com 30 Sep '13, 7am

Android ecosystem takes the baton from Apple iPad in the tablet race, says ABI Research Press release, September 30; Josep...

Yachts & Yachting - Record Entry for Rolex Middle Sea Race #sailing

Yachts & Yachting - Record Entry for Rolex Midd...

yachtsandyachting.com 29 Sep '13, 9pm

109 yachts from 18 different countries have entered the 2013 Rolex Middle Sea Race, which is set to eclipse the record ent...

Slightly hazy conditions recorded over #Singapore as PSI rises

Slightly hazy conditions recorded over #Singapo...

straitstimes.com 30 Sep '13, 7am

The Pollutant Standards Index (PSI) on Monday afternoon climbed to a three-hour average of 47 at 2pm as people around Sing...

What PH can learn from Singapore's casinos

What PH can learn from Singapore's casinos

abs-cbnnews.com 28 Sep '13, 4am

A croupier waits for gamblers at a table inside the Marina Bay Sands casino in Singapore in this April 27, 2010 file photo...