At the Forge - Working with ActiveRecord
Although constraints in our database ensure that the data will always be valid, we generally want to perform such validation at the application level. Unfortunately, doing so is tricky or time consuming in many languages. ActiveRecord, the object-relational mapper at the heart of Ruby on Rails, makes it relatively easy to ensure that your users never have to see a database error. It comes with a number of validators, as well as an infrastructure for creating custom ones. Moreover, it comes with a number of routines that let us describe the relationships among different tables. With some small modifications to the controllers, views and models, we are able to create a custom application with valid data quickly.
Resources for this article: /article/8580.
- Download "Linux Management with Red Hat Satellite: Measuring Business Impact and ROI"
- A Better Raspberry Pi Streaming Solution
- Dialog: An Introductory Tutorial
- Tech Tip: Really Simple HTTP Server with Python
- Stepping into Science
- Linux Journal December 2016
- Why Python?
- NSA: Linux Journal is an "extremist forum" and its readers get flagged for extra surveillance
- Synacor, Inc.'s Zimbra Open Source Support and Zimbra Suite Plus
- Examining Load Average