22 May '12, 8pm

ASCIIcasts - “Episode 215 - Advanced Queries in Rails 3”:

215: Advanced Queries in Rails 3 (view original Railscast) Other translations: Other formats: This episode will cover advanced queries in Rails 3. In episode 202 [watch , read ] we covered the additions to ActiveRecord queries in Rails 3; here we’ll carry on from there and show you some more advanced tips. Using Class Methods Instead of Scopes The application that we’ll be using in this application has two models: Product and Category with a product belonging to a category. The product model has two named scopes: discontinued , which returns all of the products for which discontinued is true and price, which returns the products that are cheaper than a given price argument. /app/models/product.rb class Product < ActiveRecord::Base belongs_to :category scope :discontinued, where(:discontinued => true) scope :cheaper_than, lambda { |price| where("price < ?", price) } end In ...

Full article: http://asciicasts.com/episodes/215-advanced-queries-in-ra...

Tweets

@ryanbigg Yeah.. closest I've seen is

railscasts.com 22 May '12, 3am

#215 Advanced Queries in Rails 3 May 24, 2010 | 9 minutes | Rails 3.0 , Active Record Learn some advanced techniques regar...

“Railscasts - Active Record Queries in Rails 3”

railscasts.com 26 May '12, 1am

Rails 3 introduces a new query interface for performing finds in Active Record. See how it works along with the changes in...

L.A. STORY. Get to know Deandri <3

solestruck.com 30 May '12, 7pm

Each pair of SOLESTRUCK VINTAGE shoes has been specially handpicked by one of our buyers for its unique style and quality....

Adam's

cozycot.com 29 May '12, 3am

EZ104 IS NOW LAUNCHED! CLICK HERE TO VIEW > (PLS HELP TO <3)

EZ104 IS NOW LAUNCHED! CLICK HERE TO VIEW > (PL...

eatingzombie.com 27 May '12, 1pm

We'll start invoicing after 1AM Self collection is available for this collection SELF COLLECTION OPTION IS NOW AVAILABLE *...

Allez, j'arrêt de lire des conneries sur les fo...

railscasts.com 24 May '12, 3pm

Creating a social networking site often requires a self-referential association on the User model to define friends/follow...

#Rails find of the day: #link_to_if and #link_t...

api.rubyonrails.org 04 Jun '12, 7pm

<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><inp...

Episode 2 of #AwayWeHappened is now up! This episode, I am extra BFFs with @amyokuda :D @wongfupro @att @VictorQuest

Episode 2 of #AwayWeHappened is now up! This ep...

frmheadtotoe.com 30 May '12, 6pm

Hey everyone! I've had a really busy and exciting last week since I've been back here in LA, so I'll do an instagram updat...

The 10-minute guide to Dupont and advanced biof...

altenergystocks.com 23 May '12, 11pm

100 plants? Now, that’s talking real business. The $7 per gallon capex is a compelling figure – to date, the USDA has been...

Read and watch the Greenroofs & Walls of the World™ Virtual Summit 2011 Episode 24: Panel Session "Greenroofs:...

Read and watch the Greenroofs & Walls of the Wo...

greenroofs.com 23 May '12, 2pm

“The securing of a place in mainstream construction through the International Code Council (ICC) has resulted in a milesto...

My new gem talks was covered in new @rubyfive e...

ruby5.envylabs.com 30 May '12, 11am

May 25th, 2012 The Objectify framework, use rake everywhere, big news from JRuby, some Rails console tips, Jasmine testing...

Will #Envision be for infrastructure what #LEED...

buildinggreen.com 23 May '12, 8pm

Newsbrief from Environmental Building News New Rating System “Envisions” Sustainable Infrastructure By Paula Melton The In...

Building Owners Embrace Sharing Economy with 20...

buildinggreen.com 22 May '12, 5pm

What's Happening from Environmental Building News Building Owners Embrace Sharing Economy with 2030 Districts The historic...

C116 now launched! <3

lilypirates.livejournal.com 29 May '12, 12pm

If you do not receive an email reply from us within 24 hours, it means the item is all pending/sold. Please do check back ...