Recent Episodes
-
8
Layouts and content_for Other translations:
content_for allows you to change your layouts on a per-template basis.
Tags: views
-
7
All About Layouts Other translations:
Everything you ever wanted to know about layouts.
Tags: views
-
6
Shortcut Blocks with Symbol to_proc Other translations:
The Symbol#to_proc feature in Rails allows you do do simple blocks quickly and easily.
Tags: active-support
-
5
Using with_scope Other translations:
Learn how to use with_scope - a very powerful method which will allow your custom find method to acceps any find options.
Tags: active-record
-
4
Move Find Into Model Other translations:
Clean up your controllers and remove duplication by moving a find into your model. Use an association to call custom find methods.
Tags: active-record
-
3
Find Through Association Other translations:
Use a has_many association in a find to avoid the need to pass foreign keys.
Tags: active-record
-
2
Dynamic find_by Methods Other translations:
Shorten simple find and improve readability by using the dynamic find_by and find_all_by methods.
Tags: active-record
-
1
Caching With Instance Variables. Other translations:
Store the result of an expensive command in an instance variable to improve performance.
Tags: performance caching