Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
store
README

README

Railscasts Episode #140: Rails 2.2 Extras

http://railscasts.com/episodes/140

Console

  Product.find_by_price(3) # => nil
  Product.find_by_price!(3) # => RecordNotFound Exception
  Product.find_last_by_price(4.99)
  Product.all(:joins => :category, :conditions => { :categories => { :name => 'Clothing' } })
Something went wrong with that request. Please try again.