railscasts/215-advanced-queries-in-rails-3
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Railscasts Episode #215: Advanced Queries in Rails 3 http://railscasts.com/episodes/215 rails console Product.cheap.to_sql (Category.joins(:products) & Product.cheap).to_sql Category.with_cheap_products.to_sql p = Product.discontinued.build p.discontinued t = Product.arel_table t[:price].eq(2.99) t[:name].matches("%catan").to_sql Product.where(t[:price].eq(2.99).or(t[:name].matches("%catan")))
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published