Hi,

I want to display both terminal_id and user_id. If i try to echo by
using p i.e
p @list
It is displaying only terminal_id. Please help me to correct my query.

@list = NetworkTerminal.find(:all,
:select => "network_terminals.terminal_id,timings.user_id",
:joins => "LEFT JOIN timings ON network_terminals.terminal_id =
timings.terminal_id",
:conditions => {:network_id => 'net343'}
)

Thanks,
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to