Episodes tagged with “models”
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.
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.
Mongoid Other translations:
Mongoid is a polished, high-level Ruby gem for accessing MongoDB. Here we cover installation, adding fields, validations, associations, and keys.
Dynamic attr_accessible Other translations:
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.
Active Model Other translations:
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.
MongoDB and MongoMapper Other translations:
MongoDB is a document-based database engine. Learn how to use it in Rails application with Mongomapper in this episode.
More on Virtual Attributes Other translations:
Make use of virtual attributes and callbacks to implement tagging in a blogging application.