08 May '12, 5pm

ActiveRecord: How dynamic finders work:

Dynamic finders work only with model attributes, not with associations. So if you have a belongs_to :user association on an article, you have to write Article.find_by_user_id(user.id) . I have an experimental patch that provides this functionality. I'm not entirely sure what to do with the patch. It works fine for simple belongs_to associations, but doesn't yet handle polymorphism. I'm looking into supporting polymorphic belongs_to associations, but the code is getting ugly enough that I'm not sure it's worth it. Feedback would be appreciated.

Full article: http://blog.hasmanythrough.com/2006/8/13/how-dynamic-find...

Tweets

work:

work:

tmcm.com 16 May '12, 8pm

MuchCoffee Twitter work nblo.gs/xIF5j 32 minutes ago More Shannon Amazon Author Page Facebook (Author) Facebook (Personal)...

Love these natural #wedges! #Jammin' into work ...

payless.com 08 May '12, 8pm

Change the trend or style of shoes that you are currently viewing. Womens trends New Arrivals Top Rated Pretty Petals Clas...

HP Z-Series Workstations. Made for Real Work.

HP Z-Series Workstations. Made for Real Work.

vernonchan.com 08 May '12, 1pm

HP workstations are used by some of the world’s most demanding customers in industries such as graphic arts, broadcast, CA...

Panic away Review - Does Panic Away Really Work ?: By Stan Davis Panic Away was designed by Joe Barry right afte...

Panic away Review - Does Panic Away Really Work...

renewableenergyworld.com 14 May '12, 1am

There are many packages about the market that claim to overcome stress assaults. Almost all of them fall short of their pr...

An Intimate Look into the Work of Les Lalanne

An Intimate Look into the Work of Les Lalanne

robbreport.com 07 May '12, 7am

in Manhattan will showcase more than 30 inventive, sculptural works by French artists Claude Lalanne and the late Franc¸oi...

iDonate brings more transparency to charity work

iDonate brings more transparency to charity work

e27.sg 10 May '12, 2am

Currently, only the super-rich can afford the time, money and energy to operate an office for managing charitable fund. Th...