similar to: foreign table references...a new twist

Displaying 20 results from an estimated 900 matches similar to: "foreign table references...a new twist"

2006 Feb 06
3
linked table confusion
placement.rb has_one :client has_one :case_manager client.rb belongs_to :case_manager has_many :placements case_manager.rb has_many :clients has_many :placements I am trying to create a view file for placements. I can pull columns from clients table in this view by using... <%= @placement.client.wholename %> but if I use <% @placement.case_manager.wholename %>
2006 Mar 25
1
foreign keys on migration
I have reached a development plateau and now want to integrate some of the rails niceties that I passed over to get the system online. I am fooling with migrations. I am using postgresql. I put in my migration script (at the end of the ''up'' method, the following raw sql code... # set up primary key restratints for PostgreSQL execute ''ALTER TABLE ONLY
2006 Sep 28
5
Eager loading using find_by_sql
Here''s the problem I have the following models User - is a person Team - is a team Wherenote - snipet of info about a user''s whereabouts on a certain day Team has_and_belongs_to_many :users User has_and_belongs_to_many :teams has_many :wherenotes Wherenote belongs_to :user each Wherenote has a note_date On one page I want to pull back all the Users from a particular Team
2006 Feb 27
2
Ajax - from there to here
Trying to use Amy Hoy''s ajaxariffic auto_complete methodology and I am getting really close to the end. This is fairly complicated but I will simplify as best I can. My view code is simple... <%= text_field_with_auto_complete ''client'', ''wholename'' %> # wholename is not a column in ''clients'' but rather represents an
2007 Oct 25
1
find - group - postgres
I am not sure that this is entirely a rails question as I am trying to run the command in postgres and I am getting the same error... controller code... @client_slot_count = ClientSlotsDaily.find(:all, :conditions => ["created_at > ? AND created_at < ? AND facility_id = ? AND client_id IS NOT NULL", starting_date, ending_date, @facility.id],
2006 Feb 13
8
postgres and rake
am in a bit of a quandry... I have asked postgresql-users list and haven''t gotten anything to work with... > > How do I change the owner of a schema? > > > > ALTER SCHEMA "public" OWNER to "some_user"; #? > > http://www.postgresql.org/docs/current/interactive/sql-alterschema.html > > The docs explain this very situation. HTML
2006 Feb 26
2
auto_complete on steroids
I am trying to get more out of auto_complete than it apparently was designed to deliver. My problems seem to be two fold. 1 - I use aggregations on names... :first_name, :middle_initial, :last_name and then aggregate them using a composed_of :wholename thing auto_complete_for seems to be wired to only use table columns directly and gags on the aggregate form. 2 - foreign table columns -
2010 Jan 01
1
Occasional but consistent trouble with --filter
I'm running rsync version 3.0.6 in order to migrate a set of objects from an old server to a new one. The set of object to migrate is basically composed of mail dirs which follow a well-defined name pattern, such that I believe it should be easily handled by the --filter option. I'm infact attempting to use the following rsync command in the new server: rsync -auEAXDSvz --delete-after
2006 Feb 23
3
rake error
I installed at least one gem since I thought I actually once was able to run ''rake appdoc'' command since there is an api for my models and the ez_where plugin that I installed earlier. I wanted to see the api for pdf-writer which is the gem that I installed most recently. (no, I haven''t given up the issue of ''looping'' that Kevin and some others replied
2016 Apr 22
2
Unexpected values obtained when reading in data using ncdf and ncdf4
Dear R Users, I am encountering a problem when reading nc files into R using the ncdf and ncdf4 libraries. The nc files are too large to attach an example (but if someone is interested in helping out I could send a file privately via an online drive), but the code is basic: for(i in 1:length(thesenames[,1])){ data <- nc_open(paste(INDIR, thesenames[i,c("wholename")],
2016 Apr 22
0
Unexpected values obtained when reading in data using ncdf and ncdf4
On Fri, Apr 22, 2016 at 1:32 AM, Louise Mair <louise.mair at slu.se> wrote: > Dear R Users, > > I am encountering a problem when reading nc files into R using the ncdf > and ncdf4 libraries. The nc files are too large to attach an example (but > if someone is interested in helping out I could send a file privately via > an online drive), but the code is basic: > ?[...]?
2006 Feb 07
11
breaking down a list view
I''m trying to figure out how to change the order of a list view and it''s obvious to me that I don''t understand what I get from a simple scaffold to know enough to alter it. If someone would be so kind to tell me what this means ... def list @placment_pages, @placements = paginate :placements, :per_page => 10 end @placement_pages, # I am guessing that this
2006 Jul 10
3
Can migrations set up foreign key references?
I use Oracle and i really want to use migrations, but there seems to be no way to setup foreign key constraints. Is this true? If it is then doesn''t that make migrations useles with Oracle? Thanks Chris -- Posted via http://www.ruby-forum.com/.
2011 Mar 22
0
JGR compile problem: JNI type error with a twist
Hi folks: Updated my system again and am stuck on a JGR compile problem. What I've seen in discussion of the problem doesn't seem to be helping. As others have encountered, it can't compile rJava (for one), getting this error: checking JNI data types... configure: error: One or more JNI types differ from the corresponding native type. Also, consistently with what others report,
2004 Nov 22
0
Cross-subnet browsing, with a twist
Hi, We have a server being hosted in a data center. We would like to use it as our PDC. I got the remote browse sync and announce figured out. But, if possible, we would prefer not have the domain/workgroup advertised on the subnet where the PDC reside and conversely not receive the browse list for workgroup hosted on the PDC subnet on our local net. Right now, I firewalled the subnet
2009 Oct 07
1
Hide share with a twist
I'm setting up a single SAMBA server that will have different netbioses names: netbios aliases SAMBASRV BACKUPSRV Then I have two shares defined, [assets] and [digital], different path on both. Now, when I connect to \\SAMBASRV from my windows machine, I see both the 'assets' and 'digital' shares available. Same if I connect to \\BACKUPSRV. Is there a way
2004 Sep 28
1
smoothing noisy data with a twist
Hi, I have a set of observations (x,y), derived from a previous estimation. For each observation I also have an estimated variance s(y) derived from the first stage. The problem is that I need to smooth the data (x,y) while taking into account the fact that the y's have been estimated at a previous stage and thus already come with a variance. So, if I smooth the data I somehow need to
2008 Feb 07
3
replacement for IMAP_EMPTYTRASH=Trash:7
While running dovecot on debian etch using version 1.0.rc15-2etch3, i wonder the following: If i read the config files correctly, dovecot seems to have no equivalent of courier's IMAP_EMPTYTRASH=Trash:7 setting. Therefore, i wrote a script that dives into the user's directories and their maildirs. It looks like this: ============================================= #!/bin/bash for pad1
2009 Aug 28
1
NTLM failures with an interesting twist
This is a tired old topic but I've at least got an angle on it: Outlook Express works perfectly with IMAP / SPA for users logged into our Windows domain; I just give the server address and username, and it logs in without any password required; beautiful! auth_ntlm_use_winbind = yes auth_winbind_helper_path = /usr/bin/ntlm_auth auth default { mechanisms = ntlm userdb static { args =
2008 Mar 31
2
UK FXO hangup detection with a twist
Hi, The twist? We actually have far-end hangup detection working fine, and that seems to be where the problem lies for most people. Our problem seems to be with requesting a hangup from our end reliably. If we originate the call, we can hang it up. This suggests to me that the Sangoma A200D is sending the correct hangup signaling. This way round, it is 100% reliable. If we accept a call