27 Mar '12, 10am

Thanks to @railscasts I just learned about about ActiveRecord::SpawnMethods::merge – very cool feature.

Register or log in to add new notes. noniq - March 27, 2012 0 thanks Makes it possible to use a scope through an association This is a very useful method if you want to to use a scope through an association: class Book < ActiveRecord :: Base scope :available , where ( :available => true ) end class Author < ActiveRecord :: Base has_many :books scope :with_available_books , joins ( :books ). merge ( Book . available ) end # Return all authors with at least one available book: Author . with_available_books See http://asciicasts.com/episodes/215-advanced-queries-in-rails-3 for more info.

Full article: http://apidock.com/rails/ActiveRecord/SpawnMethods/merge#...

Tweets

Lessons learned inspire McIlroy's Masters quest...

europeantour.com 27 Mar '12, 10am

Related Content Photos News Schwartzel savouring Masters reign McIlroy: I'll bounce back Schwartzel captures Masters title...

Lessons learned inspire McIlroy's Masters quest...

europeantour.com 27 Mar '12, 11am

Related Content Photos News Schwartzel savouring Masters reign McIlroy: I'll bounce back Schwartzel captures Masters title...

We Learned Tai Chi In HongKong

We Learned Tai Chi In HongKong

smashpop.net 27 Mar '12, 1am

We Learned Tai Chi In HongKong Part 1: The Day I Travelled To Hong Kong Alone Part 2: GongCha & Chicken Rice in Hong Kong ...

Railscasts - Liquid:

railscasts.com 27 Mar '12, 1pm

Jul 14, 2008 | 16 minutes | Plugins , Views Liquid is a safe way to provide a powerful template language to the site's use...

Feature#779 "Multiple SCM per project" も無事クローズ。...

redmine.org 24 Mar '12, 11pm

I understand Thomas Lecavalier when he says that it will lead to deap changes in redmine architecture. Is it possible to o...

ASCIIcast 334 - Compass & CSS Sprites

ASCIIcast 334 - Compass & CSS Sprites

railscasts.com 25 Mar '12, 10pm

If all we want from Compass are the CSS3 conveniences then we could use Bourbon instead as we showed in episode 330 . Comp...

Coffee with Cofounders – Vinnie tells entrepreneurs to stop reading and just do it! | e27

Coffee with Cofounders – Vinnie tells entrepren...

e27.sg 28 Mar '12, 1am

If you could time travel back to day one of your startup and have 15 minutes with your former self to communicate any less...

The virtual laser keyboard is back thanks to Elecom

The virtual laser keyboard is back thanks to El...

en.akihabaranews.com 26 Mar '12, 12pm

I first encounter this concept, the laser keyboard, back in 2005 when this was first introduced for PCs and sold in some v...

“Really cool” guys at Digimedia sold for about ...

domainnamewire.com 25 Mar '12, 3pm

“Really cool” guys at Digimedia sold Box.com for about $1 million As new domains like .nyc get announced, watch out for bo...

NEWS: Nike Air Classic BW - Black - Cool Grey

NEWS: Nike Air Classic BW - Black - Cool Grey

sneakernews.com 24 Mar '12, 11pm

Aside from the recent Air Trainer 1 ‘Chlorophyll’ homage, each of the Nike Air Classic BWs released in the past two months...

3 things I learned about convergence at VERGE

3 things I learned about convergence at VERGE

greenbiz.com 19 Mar '12, 5am

When my colleagues and I at GreenBiz Group first began talking about VERGE, it was all about tech: the convergence of ener...

@seoadvicess Most ORM-Tools have considerable w...

weblog.jamisbuck.org 28 Mar '12, 6am

ActiveRecord is cool and all, and it goes without saying that we all trust its judgment, but sometimes you just want to wa...

Never saw this coming: Lessons learned in tryin...

af.mil 20 Mar '12, 1pm

JOINT BASE SAN ANTONIO-RANDOLPH, Texas (AFNS) -- I had the world by the tail: U. S. Air Force Academy graduate, Air Force ...

I Got Hacked. Here’s What I Learned From It

I Got Hacked. Here’s What I Learned From It

morganlinton.com 23 Mar '12, 6pm

Keep all scripts on your site up-to-date. This is an oldie but a goodie. Hackers are always looking for exploits in script...

#278 Search with Sunspot - RailsCasts

railscasts.com 25 Mar '12, 11am

Sunspot makes it easy to do full text searching through Solr. Here I show how to search on various attributes and add face...