10 Apr '13, 9am

@LukeMaciak you can specify the :length also check model.errors

key for a property. They can be static values, such as 12 or "Hello" , but DataMapper also offers the ability to use a Proc to set the default value. The property becomes whatever the Proc returns, which will be called the first time the property is used without having first set a value. The Proc itself receives two arguments: The resource the property is being set on, and the property itself.

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

Tweets

In Singapore Properties

forums.condosingapore.com 15 Apr '13, 7am

If you ar looking for property investment Singapore is very good for you, Now singapore is fav. of most of the people beca...

Tenants Can Now Pay Rent And Maintenance In Bit...

prweb.com 08 Apr '13, 1pm

Tenants Can Now Pay Rent And Maintenance In Bitcoin Alvic Property Management has become the first property management com...

10 Real Things You Can Buy With Bitcoin, The Un...

businessinsider.com 11 Apr '13, 1am

Flickr / zcopley See Also This Job Listing Confirms That Apple's Experimenting With Flexible Displays 6 Things The Faceboo...

Masters Predictions: Six Players Who Can Win (And Five More Who Might): We all know Tiger Woods and Phil Micke...

Masters Predictions: Six Players Who Can Win (A...

golf.com 08 Apr '13, 4pm

Robert Beck / Sports Illustrated Tiger Woods and Phil Mickelson, seen here in the final round of the 2009 Masters, are No....

"If you gaze into nil, nil gazes also into you"

robots.thoughtbot.com 04 Apr '13, 8pm

The problem with nil is that it’s hard to know when to expect it. As a developer coming onto this project, or as a develop...

3D laser scanner can capture objects over half ...

newelectronics.co.uk 11 Apr '13, 9am

The researchers developed a technique which uses advanced laser technology to scan almost any object. With extra research,...

Fashion Friday: Want Pants That Actually Fit? Check Out Bonobos #fashion #mensfashion @bonobos

Fashion Friday: Want Pants That Actually Fit? C...

morganlinton.com 06 Apr '13, 12am

Hello and welcome to a brand new series I’m doing here on MorganLinton.com, and no, it has nothing to do with domain names...

Can gasses from a memory foam mattress have an ...

greenhomeguide.com 08 Apr '13, 3pm

I do not have any knowledge of whether the chemicals in memory foam mattresses could affect your fertility. I am not a doc...

57 properties sold at Malaysia Property Show #PR

propertyguru.com.sg 08 Apr '13, 4am

Apr 8, 2013 - PropertyGuru.com.sg Comment E-mail to friend Bookmark & Share By Nikki De Guzman : PropertyGuru , Asia’s lea...

Hackers can now access your Wi-Fi-enabled digital camera and spy on you

Hackers can now access your Wi-Fi-enabled digit...

electronicproducts.com 05 Apr '13, 11pm

Computer security is of the utmost importance to any technology user. Today, so many hackers exist in the world that there...

Reading, new blog: Can Self Build Deliver Signi...

ukgbc.org 05 Apr '13, 8am

We all know that the UK has a significant housing problem. Last year 113,340 homes were built in Britain, less than at any...