collect issue

Hi all,

I am filtering products

specs = Product.find(:all, :conditions => [ … ], :order => "…")
@products = specs.collect { |spec| spec.??? }

And I would like to collect all of the product fields. I dont know what
to use instead of my ???

And then I would like to show them to the user.

<% @products.each do |p| %>
     <%= p.name %> ....... <%= p.price %>
<% end %>

Thx for help.
P.

Hi all,

I am filtering products

specs = Product.find(:all, :conditions => [ … ], :order => "…")
@products = specs.collect { |spec| spec.??? }

And I would like to collect all of the product fields. I dont know what
to use instead of my ???

Maybe I've misunderstood, but why can't you do
@products = Product.find(:all, :conditions => [ .... ], :order =>
"...")

Fred