There are not different models for products. Product is one model and it has fields for price, etc.. I want to filter out products based on price:
:conditions=>"price>50" Sandip Ransing wrote: > Do you mean there are products of different types ( models ) > quite confused ?? > > On Fri, Jun 5, 2009 at 9:33 PM, Yanni Mac > <[email protected]>wrote: > >> filtered_products). I dont want it to save as this is just going to be >> a read. Is there an easy way that I can pass conditions in store model >> to get the products I want in the controller and then call the >> collection using store.products in the view? >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > -- > Ruby on Rails Developer > http://sandip.sosblog.com > http://funonrails.wordpress.com > www.joshsoftware.com -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

