homeASCIIcasts

Episodes tagged with “models”

  1. 338

    Globalize3

    Rails has great internationalization (I18n) support making it easy to translate static text into other languages, but how do we translate database content? Learn how using Globalize 3 in this episode.

    Tags: plugins activerecord models

  2. 326

    ActiveAttr

    ActiveAttr provides what Active Model left out. If you need to create a table-less model with features similar to Active Record, read this episode.

    Tags: models plugins

  3. 238

    Mongoid Other translations: Es Pt

    Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here we cover installation, adding fields, validations, associations, and keys.

    Tags: models plugins

  4. 237

    Dynamic attr_accessible Other translations: Pt Es

    It is important to use attr_accessible for security with mass assignment, but what if you need it to be dynamic based on user permissions? See how in this episode.

    Tags: security rails-30 models

  5. 219

    Active Model Other translations: It Es Cn Fr

    In Rails 3 the non-database functionality of Active Record is extracted out into Active Model. This allows you to cleanly add validations and other features to tableless models.

    Tags: models

  6. 194

    MongoDB and MongoMapper Other translations: Pt Es Cn It

    MongoDB is a document-based database engine. Learn how to use it in Rails application with Mongomapper in this episode.

    Tags: models plugins

  7. 167

    More on Virtual Attributes Other translations: Cn

    Make use of virtual attributes and callbacks to implement tagging in a blogging application.

    Tags: models forms