N00b FAQ: belongs_to is singular

Tags: 

A little tidbit I forgot along the way - in Rails the belongs_to (1-to-many association directive at the 1 side) directive needs you to assign it a singular symbol and not a multiple, e.g.:
[source:ruby]class Product < ActiveRecord::Base
belongs_to :category
end[/source]

How to reply

Care to add your own 2 cents? Let me know via Twitter or my contact page.