Forum: Ruby on Rails Associating a query with a active record class

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Raghuraman Suraj (Guest)
on 2006-02-14 11:49
(Received via mailing list)
Is there a way by which i can associate a complex query with a Model
class without using a VIEW, so that i can access all the names of the
columns returned by the query.
Raghuraman Suraj (Guest)
on 2006-02-14 12:00
(Received via mailing list)
Oops sorry found the solution had to use .attributes to get a hash of
the column name with value
This topic is locked and can not be replied to.