search for: find_by_person_id

Displaying 2 results from an estimated 2 matches for "find_by_person_id".

2006 Jul 13
2
having a problem with acts_as_state_machine
...tributes={"pattern_id"=>2, "id"=>11, "person_id"=> 2, "state"=>"looking_for_experts"}, @new_record=false, @errors=#<ActiveRecord::Errors:0x34627b0 @base=#<TalkSession:0x35811f0 ...>, @errors={}>> >> ts3 = TalkSession.find_by_person_id 2 => #<TalkSession:0x32f5f08 @attributes={"pattern_id"=>"2", "id"=>"11", "person_id"=>"2"}> >> ts2.current_state => :looking_for_experts >> ts3.current_state NoMethodError: undefined method `state''...
2006 Mar 09
4
sort-weirdness - active record issue?
I''m selecting data into a controller and sorting it. The code (in the controller) looks like this: def index @assignments = [] tasks = Task.find(:all, :conditions => ["person_id = ? and actual_end_date is null", session[:user].id.to_s ]) issues = Issue.find(:all, :conditions => ["person_id = ? and status <>