Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Applied Filters: Free Episodes x
Shortcut Blocks with Symbol to_proc
Episode #6Mar 16, 20077 comments

Shortcut Blocks with Symbol to_proc

It may have a goofy syntax, but the Symbol#to_proc feature Rails adds allows you to do simple blocks very quickly and easily. (3 minutes)
Using with_scope
Episode #5Mar 14, 20077 comments

Using with_scope

Learn how to use with_scope - a very powerful method which will allow your custom find methods to accept any find options. Just like magic! (2 minutes)
Move Find into Model
Episode #4Mar 12, 200710 comments

Move Find into Model

Move a find into the model to clean up the controllers and remove duplication. Also see how you can call these custom find methods through an association. (2 minutes)
Find Through Association
Episode #3Mar 08, 20075 comments

Find Through Association

No need to pass foreign keys in find conditions, just do the find through a has_many association. (2 minutes)
Dynamic find_by Methods
Episode #2Mar 06, 200714 comments

Dynamic find_by Methods

Shorten simple finds considerably and improve readability by using the dynamic find_all_by and find_by methods. (1 minute)
Caching with Instance Variables
Episode #1Mar 04, 200731 comments

Caching with Instance Variables

Learn a quick way to improve performance. Just store the end result of an expensive command in an instance variable! (2 minutes)