ActiveRecord Issues - Uninitialized Contant
Just having a play around with RoR for a few little automation tasks and it's doing my nut in right now. I've got two models:
class Item < ActiveRecord::Base
The table for items has: something_id column in it.
class SomeThing < ActiveRecord::Base
Yet when I try:
<%=h item.something.value %>
and it's doing my head in right now as to why it isn't working.
uninitialized constant Item::Something
It's bound to be something simple that I'm just not seeing, having come from many years with PHP.