Zhao Yi wrote: > Ryan wrote: > >> I think it's been around since Rails 2.1 >> >> Project.first >> Project.last >> Project.all >> >> all work. >> > > I think the first last and all refers to rows. I want to select columns. > If I'm not wrong, relational algebra doesn't identify a sequence between the elements of a row, i.e., I don't think it gives you the ability to select a column specifically. That said, you could probe for the schema and get the elements using that - something like how the dynamic scaffold used to work in earlier Rails.
Cheers, Mohit. 12/26/2008 | 1:27 PM. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

