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
class SomeThing < ActiveRecord::Base
The table for items has: something_id column in it.
Yet when I try:
<%=h item.something.value %>
uninitialized constant Item::Something
and it's doing my head in right now as to why it isn't working.
It's bound to be something simple that I'm just not seeing, having come from many years with PHP.