When I run: e = Event.first in the console it gets me my first event.
Then I run: e.eventcategory_ids I get: NoMethodError: undefined method 'eventcategory_ids' for #<Event:0x00000002b7d660>
I figure that has to work before any of the rest of the stuff from this screencast will work for me... right? Am I missing something here?
OK, I fixed it by changing all my eventcategory stuff over to eventcat to keep the naming less likely to get mixed up.
I'm using Ruby 2.0 and Rails 3.2.8 and I can't seem to get the simple has_many through part working.
In my Event model
In my Eventcategory model
In my Categorization model
The tables are all there for all three models.
When I run:
e = Event.first
in the console it gets me my first event.Then I run:
e.eventcategory_ids
I get:NoMethodError: undefined method 'eventcategory_ids' for #<Event:0x00000002b7d660>
I figure that has to work before any of the rest of the stuff from this screencast will work for me... right? Am I missing something here?