Jun 24, 2009

DM hook before :save

I've been using DM's hooks a lot to do the customized validation. Today I was trying to set a property before save,

It won't work.

Finally, I figured it out, use attribute_set

Jun 2, 2009

What kind of parents we want to be

Just read a blog article this morning, it really made me thinking. As a new father, I am not doing anything like that now, but I think I have the tendency :-). Following is the shamelessly copy and paste from the blog:

Helicopter parents

A colloquial, early 21st-century term for a parent who pays extremely close attention to his or her child’s or children’s experiences and problems, particularly at educational institutions. These parents rush to prevent any harm or failure from befalling them and will not let them learn from their own mistakes, sometimes even contrary to the children’s wishes. They are so named because, like helicopters, they hover closely overhead, rarely out of reach, whether their children need them or not.

Blackhawk parents

…those who cross the line from a mere excess of zeal to unethical behavior, such as writing their children’s college admission essays.

Lawnmower parents

…[used] to describe mothers and fathers who attempt to smooth out and mow down all obstacles, to the extent that they may even attempt to interfere at their children’s workplaces, regarding salaries and promotions, after they have graduated from college and are supposedly living on their own.

I have a ten-month old baby girl, she is so lovable, me and my wife cherish her like a princess, sometimes we even think that we might be spoiling her. This article just in time, I will discuss with my wife, what parents we want to be?