Displaying 20 results from an estimated 100 matches similar to: "displaying foreign keys help request"
2006 Feb 07
0
newbie -- displaying foreign key
Hi ..
A conceptual question this time.
I have the relation:
member (m)---(1) member_type
The schema looks something like this (simplified + PGSQL)
create table member_types (
id serial,
info varchar( 20 ) not null,
primary key( id )
);
create table members (
id serial,
first_name varchar( 100 ) not null,
2006 May 12
2
Has many through join table issues
I''m trying to wrap my caffeine soaked brain around has_many :through
following along at:
http://rails.techno-weenie.net/tip/2005/12/23/teaching_your_blog_model_new_tricks_with_has_many_through
I think my models are a little more complex than what fits this
narrative.
I have a directory of members, each member can belong to multiple
categories.
The category table references itself
2006 Feb 07
3
Newbie help ..
Hi ..
I am new to Rails and it is not clear to me why I am getting the
following error. Any help appreciated.
-m.
$cat app/views/admin/new.rhtml
<% @page_title = "New member..." -%>
<%= start_form_tag( :action => ''create'' ) %>
<table>
<tr>
<td> First Name: </td>
<td> <%= text_field(
2011 Sep 09
3
Can't add users to well known groups...
I created the well known group Domain Admins pointing to a local group,
but I am not able to add users to the group -- it claims I can only add
users to
local or global groups...
But I only see local, domain ,well-known, builtin.
There are no global groups unless one would include all groups that are
not local (i.e. domain, well-known, and builtin)....
So why doesn't it want to let me add
2006 Feb 15
1
how to -- newbie
Hi ..
I am getting started with RoR and having fun :-)
So, my problem is how to integrate the static and dynamic sides of the
site I am making. I have a standard look-and-feel, the usual stuff,
graphic header, left sidebar with menu, content in the centre. Some
pages are static -- main page, contact, that kind of thing -- and some
are dynamic, such as the admin pages.
My problem is I
2006 Jan 10
1
select lists - initial and empty elements
Hi all,
A couple quick select helper questions.
First, how do I set the initial selection value?
Second, how do I create an "empty" element in the list? Or should I just
unshift nil onto the list?
I looked over the docs, but didn''t find anything specifically about this. If
this is covered, just point me to the appropriate link and I''ll be on my way. :)
Thanks,
2006 Sep 25
1
ActiveRecord instead of direct sql execution
Hi all,
I have 2 tables and a standard one-to-many association.
How do I substitute the following sql with ActiveRecord calls so that
it uses just one sql statement:
update geo_entities set terminal_id = 3 where id = 10 or id = 23
or id = 87;
Thank you!
Regards,
Yuri Leikind
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to
2005 Dec 19
3
Is there a list of html_options for the FormOptionsHelper?
I''m looking for a way to select a default value from a select box, like
this:
select("user", "role_id", Role.find_all.collect {|r| [ r.name, r.id ] },
{ :default_value => ''5'' }
(of course, there is no ":default_value")
If the form is being used on a ''create'' page, it should display a
default in the select box. If
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
Hello all,
The itanium demangler in libcxxabi (and also, llvm/lib/Demangle) is
really slow. This is largely because the textual representation of the
symbol that is being demangled is held in a std::string, and
manipulations done during parsing are done on that string. The demangler
is always concatenating strings and inserting into the middle of
strings, which is terrible. The fact that the
2006 Apr 04
2
xend connection refused
I just booted Xen unstable (2.6.16 kernel) and Domain0 is running fine,
all on Debian 3.1 Sarge unstable on amd64. I can''t do much else:
Error: Error connecting to xend: Connection refused. Is xend running?
What''s wrong and how do I fix it?
--
Neal Probert (nealzilla@probestar.com) aka Niall Lundkvist
2010 Mar 19
3
[OT] Small touch screens that works with CentOS
Hi,
We want to display on a small LCD screen next to our meeting rooms and optionally let people book the room from the panel. We looked at different providers and those solutions either works with Exchange or Lotus Notes...
Since I already have code to fetch events from any CalDAV/WebDSV servers, I'm looking at building the system myself. So I'm wondering if any of you can recommend
2010 Nov 26
2
Checking what's running inside a httpd process
I'm trying to fix a CentOS (5.5 x86_64) VM that we have where it become unstable due to swapping. But I did notice something: I have 10 httpd processes, and 5 of them are using 13 MB of resident memory, the other are using between 91 and 96 MB of RAM. I find it quite strange to see such differences in RAM usage. I ran a "lsof -P -p" on the processes, and I didn't see any major
2009 Sep 21
2
Question about iostat output
Hello,
We are planning to moving most of our servers to ESX but before buying
our SAN, we want to do some I/O stats to see if iSCSI is enough or if
we have to go with FC. So I found a plugin for Nagios that can log I/O
stats with iostat. So far it's fine with single disk/one partition
servers, but on our Oracle Database 10g server, we have two drives in
RAID 1 (/dev/sda) and 4 other
2010 Nov 30
1
linux-2.6.18.tar.bz2 is missing
We have to rebuild our kernel to add support for a Mainpine fax board on a
CentOS 5.5 board:
http://www.hylafax.org/content/Handbook:Basic_Server_Configuration:Modem-specific_Guidance#Mainpine_IQ_Express
We followed all steps, but when calling rpmbuild, we are getting:
[root at hylafax SPECS]# rpmbuild -ba --target x86_64 kernel-2.6.spec
Construction pour plate-formes cibles: x86_64
2006 Feb 06
35
ROR Recipes Beta
Yesterday I got the beta version of ROR recipes book and the recipes are great. For those of you still thinking about it, I highly recommend the book.
The only thing I wish is that if there were some more recipes (greedy me), especially AJAX related and installing an application within your current application.
For instance, it will be great to see how one can implement the typo blog
1998 Jun 19
16
WARNING: Break-in attempts
Greetings all,
I''m forwarding a copy of an email I sent reporting attempted
break-ins on my main server, earth.terran.org. I am forwarding this
because I think it is relevant that folks watch for this kind of activity
in their logs to catch people who "try doorknobs" in the middle of the
night. After sending this email, I sent a talk request to the user, who
was still logged
2006 Feb 09
30
why there is no automatic relationship discovery
When I explain RoR to someone I don''t have a convincing argument that
explains why everything is so automatic and transparent, but
relationships have to be encoded by hand in models. That shows I
don''t understand well that part of AR.
There''s the argument that says that not all databases offer metadata
about foreign keys, but the natural question then is that,
1998 Jun 06
21
Named update for RH 4.2 exploitable?
Someone I was speaking with this evening claimed they have installed the
latest named rpms yet they are still getting exploited daily and being
hacked. Do the latest rpm''s for the named 4.9.x stuff fix all the root
exploits or is this person just an idiot who probably has holes elsewhere in
the system?
1998 Jun 08
27
Services not required?
I''m in the process of locking down as much of my systems here
as possible as to available ports. I am down to only a handful
but am not sure how much of a security risk they pose and was
wondering if anyone here might be able to comment, or suggest
secure versions to run:
21/FTP (WU-ftpd v2.4.2 BETA 14)
22/SSH (1.22)
23/TELNET (Netkit 0.09)
25/SMTP (Sendmail
2009 Mar 06
2
Disk Partitioning Questions....
I am working on starting Virtural Servers at my office and have questions regarding disk partitioning recommendations.
I am using SLES 10 SP2..... RAID 5.... 280G available... no external storage...
1 - Should the DOM be on primary partition and then place the VM''s in LVM?
2 - Should I create partitions in the LVM for each of my VM''s separately or can they all reside on the