Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 store-after
Octocat-spinner-32 store-before
Octocat-spinner-32 README.md
README.md

RailsCasts Episode #354: Squeel

http://railscasts.com/episodes/354-squeel

Requires Ruby 1.9.2 or higher.

Commands used in this episode

rails c
rails g squeel:initializer

Commands used in rails console

Product.where { released_at < 3.months.ago }
Product.where{released_at < 3.months.ago}
Product.where{released_at < 3.months.ago}.class
Product.where{released_at.lt 3.months.ago}
Product.where{released_at.lt(3.months.ago) & price.gt(20)}
Product.where{released_at.lt(3.months.ago) | price.gt(20)}
Something went wrong with that request. Please try again.