Displaying 2 results from an estimated 2 matches for "whodunnit".
2006 Apr 03
0
with_scope used in a has_many :through model
Hi there,
I have something like the following:
class Person < AR:B
...
...
has_many :votes
has_many :chosen_answers, :through => :votes, :source => :answer, :select => ''DISTINCT answers.*'' do
def my_answers(whodunnit)
chosen_answers.with_scope(:find => { :conditions => [ "votes.created_by=?", whodunnit ] }) do
chosen_answers.find :all
end
end
end
Its somewhat of a contrived example, but I''m trying to understand if/how
it can work.
If i try:
p=Person.find :first
p.ch...
1998 Aug 11
2
security=server and need to have users at linux too
Hi everybody,
I have set up a Linuxbox with Samba and security=server in smb.conf.
So far this works, the users are authenticated on the NT-Server as they
shuold but then they´re mapped to guest user. When I create the User on my
linux box with the same username as on the NT-Server it works OK, no matter
what password this user has on the linux box.
The real problem is, that I don´t like the Idea