This page contains automated test results for code from O'Reilly's Ruby Cookbook. If this code looks interesting or useful, you might want to buy the whole book.
Adding Taggability with a Database Mixin | ||
---|---|---|
Code | Expected | Actual |
require 'cookbook_dbconnect' require 'og' require 'glue/taggable' class BlogPost is Taggable property :title, :content, String end og_connect |
Now we can play around with tags. |