Retrieving all values of the column from the table


I have a function in my model like

Well, have you tried it ? (look up the send method)


I tried it Fred,but it didn't work

Instead this did the job for me

class Pattern   def self.get_all(field)     @patterns = Pattern.find(:all)     @patterns.collect do |pp|       pp[field]     end   end end

Regards, Vimal Das