Hi i have 2 table users and issues
I need daily report . all users are give a status to everyday. i got it
in
2 line.
But i need leave users also.
If i use 1st def method i got user status list and all users no record
fields.
when i used the 2 nd def method i got user status list only.
i attached my 2 def methods and the 2 screen shot also here
def report
@issues=Issue.find(:all, :conditions => ['DATE(created_on)
=
?’, Date.today])
issues = Array.new
@issues.each do |iss|
issues << iss.author_id
end
@users = User.find(:all, :conditions=>“id not in
(’#{issues}’)”).reverse
end
def report
@issues=Issue.find(:all, :conditions => ['DATE(created_on)
?’, Date.today])
@users = User.find(:all, :conditions => [“id NOT IN (?)”,
@issues])
end
can anyone help me thanks for advance