RailsCasts Pro episodes are now free!

Learn more or hide this

Applied Filters: authorization xActive Record x
Model Caching (revised)
Episode #115 – May 13, 2013 – 426 comments

Model Caching (revised)

Caching at a low level is a great option when the view is too dynamic to cache and you need something flexible that can work anywhere in the application. Here I show a variety of ways to use Rails.cache with Active Record. (12 minutes)
Active Record Reputation System
Episode #364 – Jul 09, 2012 – 105 comments

Active Record Reputation System

If you need to calculate an average user's rating or sum up a number of votes, consider using the activerecord-reputation-system gem. Here I will cover the basics and also briefly present a from-scratch solution. (10 minutes)
Full-Text Search in PostgreSQL
Episode #343 – Apr 17, 2012 – 131 comments

Full-Text Search in PostgreSQL

Postgres offers full-text searching right out of the box. This episode shows how to write queries from scratch, apply tools like Texticle and pg_search, and optimize performance through indexes. (16 minutes)
Thinking Sphinx (revised)
Episode #120 – Dec 09, 2011 – 44 comments

Thinking Sphinx (revised)

Sphinx is a full-text search engine for use with MySQL or PostgreSQL. Learn how to add Thinking Sphinx by defining an index on your model and searching with various options. (10 minutes)
Embedded Association
Episode #189 – Nov 23, 2009 – 83 comments

Embedded Association

Learn how to set up a one-to-many or many-to-many association which is entirely embedded into a single column through a string or bitmask. (14 minutes)
7 Security Tips
Episode #178 – Sep 07, 2009 – 64 comments

7 Security Tips

Security is important! Here I show seven different security flaws which are common to Rails applications ranging from mass assignment to CSRF protection. (14 minutes)
Integrating Active Merchant
Episode #145 – Jan 19, 2009 – 91 comments

Integrating Active Merchant

In this episode I show how to add Active Merchant's functionality to a Rails application to make a fully-functional checkout process. (18 minutes)
Thinking Sphinx
Episode #120 – Jul 28, 2008 – 114 comments

Thinking Sphinx

If you need a full text search engine, Thinking Sphinx is a great solution. See why in this episode. (12 minutes)