On Sun, Apr 18, 2010 at 2:46 AM, Philip Hallstrom wrote:
>
> On Apr 17, 2010, at 10:30 PM, Bob Smith wrote:
>
>> I'm trying to get records from a has_many that are only from this
>> year.
>>
>> has_many :visit, :conditions => "year = #...@today.year}", :dependent
>> => :destroy
>>
>> This has trou
On 18 April 2010 06:30, Bob Smith wrote:
> I'm trying to get records from a has_many that are only from this
> year.
>
> has_many :visit, :conditions => "year = #...@today.year}", :dependent
> => :destroy
>
> This has trouble. it thinks @today is null.. Any other ideas?
What is @today?
Colin
-
On Apr 17, 2010, at 10:30 PM, Bob Smith wrote:
I'm trying to get records from a has_many that are only from this
year.
has_many :visit, :conditions => "year = #...@today.year}", :dependent
=> :destroy
This has trouble. it thinks @today is null.. Any other ideas?
Don't you want :visits (wit
I'm trying to get records from a has_many that are only from this
year.
has_many :visit, :conditions => "year = #...@today.year}", :dependent
=> :destroy
This has trouble. it thinks @today is null.. Any other ideas?
Bob
--
You received this message because you are subscribed to the Google Gro
4 matches
Mail list logo