homeASCIIcasts

Recent Episodes

  1. 10

    Refactoring User Name Part 1

    This episode will show you how to move code from the view into the model to reduce duplication and clean up the view.

    Tags: refactoring

  2. 9

    Filtering Sensitive Logs

    By default, Rails stores sensitive data in its log files. Find out how to filter it out.

    Tags: security

  3. 8

    Layouts and content_for

    content_for allows you to change your layouts on a per-template basis.

    Tags: views

  4. 7

    All About Layouts

    Everything you ever wanted to know about layouts.

    Tags: views

  5. 6

    Shortcut Blocks with Symbol to_proc

    The Symbol#to_proc feature in Rails allows you do do simple blocks quickly and easily.

    Tags: active-support

  6. 5

    Using with_scope

    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

  7. 4

    Move Find Into Model

    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

  8. 3

    Find Through Association

    Use a has_many association in a find to avoid the need to pass foreign keys.

    Tags: active-record

  9. 2

    Dynamic find_by Methods

    Shorten simple find and improve readability by using the dynamic find_by and find_all_by methods.

    Tags: active-record

  10. 1

    Caching With Instance Variables.

    Store the result of an expensive command in an instance variable to improve performance.

    Tags: performance caching