search for: local_lines1

Displaying 1 result from an estimated 1 matches for "local_lines1".

Did you mean: local_lines
2007 Jun 25
0
storing data from database into array
...a XMLFEEDS table we have basic information about the games (the game date, the sport type of the game). Then in the PARTS table, we have two entries per xmlfeed entry which correspond to the two teams participating in the game. Essentially, right now I have a line in my code that goes like this: @local_lines1 = Xmlfeed.find(:all, :conditions => ["id = ?", @id]) This is guaranteed to give me exactly one row from the database and as such, am able to make a call like this: @visiting_team = @local_lines1[0].parts[1].participant_name where the xmlfeeds table and the parts table have been link...