21 Mar '13, 11pm

@plukevdh oh yeah that's a real PITA. You can set raise_on_save_failure to bubble up the validation error.

Sometimes though, you either don't need the extra safety you get from dm-validations , or you don't want any callbacks to be invoked at all. In situations like this, you can use the bang(!) versions of the respective methods. You will probably find yourself using these unsafe methods when performing internal manipulation of resources as opposed to, say, persisting attribute values entered by users (in which case you'd most likely use the safe versions). If you call #save! instead of #save , no callbacks and no validations will be run. DataMapper just assumes that you know what you do. This can also have severe impact on the performance of some operations. If you're calling #save! , #update! or #destroy! on a (large) DataMapper::Collection , this will result in much better performance than calling the safe non-bang counterparts. This is because DataMapper won't load the col...

Full article: http://datamapper.org/docs/create_and_destroy.html

Tweets

Create Kinect 3D Avatars Using Your Body

spectrum.ieee.org 20 Mar '13, 3pm

Last week, we showed you how Microsoft's new Kinect API lets you use your hands to draw on a painting program . But how ab...

Singapore's OUE in Talks With Banks to Set Up R...

bloomberg.com 21 Mar '13, 6am

Overseas Union Enterprise Ltd. (OUE) , which is buying California’s tallest building, said it’s in talks with banks to set...

Bitcoin: Virtual Currency Enters Real World

bloomberg.com 22 Mar '13, 9pm

Welcome to the real world, Bitcoin. The U.S. government has officially legitimized the popular crypto-currency and other "...

#Bitcoin spikes in value, prompting fears of a new bubble

#Bitcoin spikes in value, prompting fears of a ...

dailydot.com 21 Mar '13, 9pm

Today the digital currency Bitcoin spiked in value, increasing almost 70 percent in two days. Most analysts credit the ong...

11 Ways Vivastream Can Enrich Your #SESNY Social Experience

11 Ways Vivastream Can Enrich Your #SESNY Socia...

searchenginewatch.com 21 Mar '13, 4pm

Want to make sure you're meeting the right people and attending the right sessions during SES New York ? Meet Vivastream –...

9 ways business can help save bees

treehugger.com 21 Mar '13, 1pm

It's no surprise that green t-shirt specialist TS Designs has bees at its headquarters , alongside raised bed gardens, sol...

A status update on the advancement of the Bitco...

blog.p2pfoundation.net 17 Mar '13, 6pm

A status update on the advancement of the Bitcoin ecology Michel Bauwens 17th March 2013 Excerpted from Nicolas Mendoza : ...

blogged: Direct tradiness, an update

blogged: Direct tradiness, an update

blog.barismo.com 21 Mar '13, 12pm

This year, we went early to get a lot of things done with the farms we work with. We completed our visits to Costa Rica an...

This is what a bubble looks like:

This is what a bubble looks like:

newstatesman.com 14 Mar '13, 5pm

This is what a bubble looks like: That's the market capitalisation of Bitcoin, an innovative fiat currency which relies on...