homeASCIIcasts

Search Results

  1. 16

    Virtual Attributes Other translations: Cn It Es Fr

    Keep your forms flexible by adding virtual attributes to your model. This powerful technique allows you to create form fields which may not directly relate to the database.

    Tags: active-record forms

  2. 15

    Fun With Find Conditions Other translations: It Es Fr

    You can pass objects other than strings to find conditions, but care must be taken to ensure that the correct SQL is generated.

    Tags: active-record

  3. 14

    Performing Calculations On Models Other translations: It Es Fr

    ActiveRecord provides class methods for performing calculations on models. See how in this episode.

    Tags: active-record

  4. 13

    Dangers of Model in Session Other translations: It Es Fr

    Care must be taken when storing a model in a session as it can get out of sync with the database.

    Tags: controllers

  5. 12

    Refactoring User Name Part 3 Other translations: It Es Fr

    In the final part of the episodes on testing and refactoring we'll refactor our test code.

    Tags: refactoring testing

  6. 11

    Refactoring User Name Part 2 Other translations: It Es Fr

    Having moved code from the view to the model in part one, we'll refactor it and write some tests to make sure it all still works as expected.

    Tags: refactoring testing

  7. 10

    Refactoring User Name Part 1 Other translations: It Es Fr

    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

  8. 9

    Filtering Sensitive Logs Other translations: It Es Fr

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

    Tags: security

  9. 8

    Layouts and content_for Other translations: It Es Fr

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

    Tags: views

  10. 7

    All About Layouts Other translations: It Es Fr

    Everything you ever wanted to know about layouts.

    Tags: views