Displaying 1 result from an estimated 1 matches for "systemmessage_datetimeranges".
2006 Mar 16
4
Table Relationships Problems.
...on_id
:start
:end
The systemmessage_validtimes has a ''has_many'' relationship with
systemmessages, meaning that there could be many valid times for each
system message.
@systemMessage = Systemmessage.find(1)
E.g. I can access a system valid time like this :
@systemMessage.systemmessage_datetimeranges[0].id
I went ahead and made systemmessage_validtimes belong_to locations. But
when I try to access the locations variable, it doesn''t exist. The
location object isn''t being joined into the return object. I can retireve
the location_id, but the following fails :
@systemMessa...