search for: last_entry_items

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

2006 Jan 13
2
JOIN
Hi! For the following example I want to retrieve the last 10 LastEntries for experis_date >= now. class User < ActiveRecord::Base has_one :last_entries def self.last_entry_items find(:all, # :include => "last_entries", # :conditions => "last_entries.expires_date >= now()", :order => "id desc", :limit => 10) end end class LastEntrie < ActiveRecord::Base belongs_to :user end Rails tells me the following:...