From: raffir@... Date: 2006-07-24T14:05:10+09:00 Subject: Bad query? I have a find() query inside a for loop. Basically, I want the loop to go through all elements in User.accounts and find all elements in Accounts that have the same name as each element (to see other users who have accounts with the same name). Right now my code is as follows:
| <%= account.coursename %> | <%= account.coursenumber %> | <%= account.user_id%> | <%= account.first_name%> <%= account.last_name%> | <%= link_to 'Show', :controller=>'user', :action=>'userdetails', :id=> account.user_id %> |