title: undefined method for #<Array:0x7feb70d56fe8>
body: <p>I want show all price for all finds days.</p>
  
  <p><strong>in controller view</strong> </p>
  
  <pre><code>def view
   @travel = Travel.find(params[:id])
   @car = Car.find(:first, :conditions =&gt; ["id = ?", @travel.car_id])
   @start_day = StartDay.find(:all, :conditions =&gt; ["travel_id = ?", @travel.id])
   @import_price = ImportPrice.find(:all, 
          :conditions =&gt; ["begin_date = ? and car_code = ?",
                          @start_day.day, @car.short_name])
  end
  </code></pre>
  
  <p>When I add value @import_price appears error:</p>
  
  <pre><code>undefined method `day' for #&lt;Array:0x7feb70d56fe8&gt; 
  </code></pre>
  
  <p>How me make the correct selection for all days?</p>
  
  <p>Thanks in advance.</p>
  
  <p>ruby 1.8.7 rails 2.3</p>