Topic: Help w/ pulling data from 2 tables and displaying the results
I'm brand new to ruby and I'm having trouble pulling data from one
table (table_1), looping through the results and pulling data from
another table (table_2) and displaying the results of table_2 in one
the pseudo code would be as follows:
result_1 = select first_name from table_1
puts "<tr><td> results_1.first_name<td>"
results_2 = select table_2.info from table_2 where table_1.user_id = table_2.user_id;
The display would look like this for 1 row:
joe | -info 1
Help - I'm desparate!
clem_c_rock is online now Report Post Edit/Delete Message