Raghuraman Suraj
2006-Feb-14 09:49 UTC
[Rails] Associating a query with a active record class
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
2006-Feb-14 09:58 UTC
[Rails] Associating a query with a active record class
Oops sorry found the solution had to use .attributes to get a hash of the column name with value On Tue, 2006-02-14 at 15:22 +0000, Raghuraman Suraj wrote:> 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. > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >