Rails

A 1-post collection

3 years ago

Rails belongs_to class_name hijinks

Quick Hits   Rails  

This will be short and sweet. If you're using a 'class_name' attribute on your 'belongs_to' association to make an alias for that field, make sure you capitalize it properly. I was getting a number of…