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