Displaying 1 result from an estimated 1 matches for "currently_active".
2008 Mar 07
3
Boolean circles..
...ions is no
problem, it even converts the 0/1 values from my import CSV to false
and true.
However, I cannot make the :conditions part of a find work:
Loading development environment (Rails 2.0.2)
>> c = Club.find(1)
=> #<Club id: 1, club_name: "Ume\214 Kuniba kai", logo: nil,
currently_active: 1, created_at: "2008-03-07 12:52:35", updated_at:
"2008-03-07 12:52:35">
>> m = c.members.find(:first, :conditions => "is_active = 1")
=> nil
>> m = c.members.find(:first, :conditions => "is_active = true")
ActiveRecord::StatementInva...