search for: find_column

Displaying 1 result from an estimated 1 matches for "find_column".

Did you mean: file_column
2006 Apr 11
2
Getting distinct years from a date column the Rails way
...e database is good at (filtering results). Can anyone suggest a better or more idiomatic approach to this? It seems there should be support for finders of a certain column that return an array of objects of the column''s type rather than the model type. Something like: @years = Photo.find_column, :select => ''distinct year(original_at)'' Does that seem useful, or is there a way to do that cleanly now? -- Posted via http://www.ruby-forum.com/.