homeASCIIcasts

Search Results

  1. 6

    Shortcut Blocks with Symbol to_proc Other translations: It Es

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

    Tags: active-support

  2. 5

    Using with_scope Other translations: It Es Kr

    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

  3. 4

    Move Find Into Model Other translations: It Es

    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

  4. 3

    Find Through Association Other translations: It Es

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

    Tags: active-record

  5. 2

    Dynamic find_by Methods Other translations: It Fr Es Kr

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

    Tags: active-record

  6. 1

    Caching With Instance Variables. Other translations: It Fr Es Kr

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

    Tags: performance caching