Results 1 to 5 of 5
May 15, 2010, 18:12 #1
- Join Date
- Dec 2004
- 0 Post(s)
- 0 Thread(s)
shortest way to query to db tables and append all appropriate id's into array?
Am I being overly verbose on doing this?
@user = User.find(session[:user]) @involved_list = @user.projects @leading_list = Project.is_leader(session[:user]) @list =  @involved_list.each do |p| @list << p.id end @leading_list.each do |p| @list << p.id endyour brain reacts in the same way whether you are
looking at something or thinking about it...