Open cue232s opened 12 years ago
Eventlog.populate 1000 do |eventlog, e_index, v_index|
e_index = 1..Event.count
eventlog.event_id = e_index
eventlog.ename = Event.find_by_id(e_index).title
v_index = 1..Visitor.count
eventlog.visitor_id = v_index
eventlog.vname = Visitor.find_by_id(v_index).fullname
end
I'm having the same issue as @cue232s. Any help would be appreciated.
But when I go to my Tagging table, the 'restaurant_id' fields in each record is populated with an ID that is not associated with any of the Restaurant IDs that this method created. Any idea why? When I run it in Rails console, I get the desired effect.