ruby on rails 3 - How to define new instantaneous variable row by row - RAILS3 BEGINNER -


I was hoping someone could point me in the right direction ...

My Information is given to a database that is near and use a search command to select the rows in this database that match some criteria

  @matching = Info.find (: all ,: Conditions => ["product_name =   

I then drag these items to the cheapest

  @cheapest = @ In the end, I have a Want to create an improvised array that contains many b That's the list of @cheapsteps for the OGS norms i.e. in line 1 sarpst for @OlkeApest criteria1 @ 1, in row 2 @OlcaPest is serp for criteria 2 ...  

Any help great Thank you in advance

  info.where (: product_name = & gt; distinct_product.to_s ) .order ('value ASC'). First   

How to choose the cheapest price for product_name, without further insight into the structure of your database, this suggestion Ena be difficult to obtain after how, but you

  info.where (: product_name = & gt; Distinct_product.to_s). ('Value ASC'). Group (: product_name)    

Comments