Displaying 6 results from an estimated 6 matches for "othert".
Did you mean:
other
2006 Jan 24
2
NULL id''s / invalid references
Hi,
could you suggest me how to handle this in a proper way? I have a table
which has
othertable_id column (relationship is belongs_to) Problem is, that
sometimes there is a NULL value and table.othertable.foo returns an
error... what should I do about it? change something in model? in view?
or just add "unknown" row to othertable and update table.othertable_id
with id of th...
2007 Aug 30
1
belongs_to with foreign keys that reference non primary key columns
...ello,
I have a situation where the foreign key into a table doesn''t
correspond to that table''s primary key:
my_table
-------------
id (pk)
name
...
other_table
--------------
id (pk)
my_table_name (fk references my_table(name))
...
I want to be able to say something like:
class OtherTable < ActiveRecord::Base
belongs_to :my_table, :foreign_key => { :my_table_name => :name }
end
OtherTable.find(:first).my_table
Is this possible? If not, what is the reasoning behind the decision?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this messa...
2003 Jun 09
21
shorewall + tos + netbios
Hi Tom,
How are u?
hehehe
I have a question.
I have 2 pc with redhat 9.0 configured with ipsec freeswan 1.99 (vpn)
and i have to tranfer file from one to the othert one.
I see that ftp tranfer have a throughtput is the double than a netbios
tranfer... why???
I supposed the problem is the TOS.(/etc/shorewall/tos) and i modified
the file like ftp... in this method.
#SOURCE DEST PROTOCOL SOURCE PORTS DEST PORTS TOS
all all...
2003 Feb 17
1
R environment advice?
...nect to a
database, load several database tables into matrices in R, strip the
columns out of those matrices and do some minor tabluation...for
instance:
channel <- odbcConnect(yada, yada, yada)
surveyresults <- (channel, select * from sometable)
multiresults <- (channel, select * from othertable)
multiresults.columnname <- multiresults[,1] # or column 2 or 3 or 4 or
so on...
multiresults.columname.table <- table(multiresults.columnname)
etcetera, etcetera.
I would like to create a single file that I could share that would load
this environment up for a new R user for this d...
2011 Sep 17
0
joining and array with a table in ActiveRecord
...a table like this:
def mytags
Taggable.joins("JOIN taggables as filter ON taggables.tag_id =
filter.tag_id WHERE filter.taggable_type = ''User'' AND filter.taggable_id
= 1").all
end
this works perfectly fine.
then I want to join the result on another table, where
OtherTable.joins(@mytags) works also fine BUT I want to
join on two other colums and NOT on the ids....
Can anyone tell me how to do this?
thx
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group....
1998 May 26
0
Re: Beware of dangerous enviroment (Re: Overflows in minicom)
...handful of weak points
> >where the value of an enviroment variable is trusted more than necessary.
>
[1]
> Could you explain to programming novices on linux-security - people like
> myself 8) - hwo this could affect security on a firewall (proxy and/or
> IP-router, with/without othert services like a webserver, lpd and alike)
> running Linux (of course)?
[2]
> And what could proper precautions be and how could we monitor this part
> of the security?
[To the moderator: I have no idea whether all this stuff belongs to the
list. It is up to you to decide. :) ]
ad [1]...