similar to: newbie -- displaying foreign key

Displaying 20 results from an estimated 900 matches similar to: "newbie -- displaying foreign key"

2006 Feb 07
1
displaying foreign keys help request
Hi .. (I seem to be having some problems getting my posts to the list for some reason. Sorry if you see this as a repost). 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
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(
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 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 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
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
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
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
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
2006 Oct 12
1
Problems with package foreign (r-cran-foreign)
On 12 October 2006 at 13:02, Gregor Gorjanc wrote: | Hello! | | I encounter the following problem when I try to load package foreign | | library(foreign) | Error in dyn.load(x, as.logical(local), as.logical(now)) : | unable to load shared library '/usr/lib/R/library/foreign/libs/foreign.so': | /usr/lib/R/library/foreign/libs/foreign.so: undefined symbol: | Rf_allocString | Error:
2007 May 15
1
how to index and search multiple foreign keys in aaf
Let''s say I have a class Job that has a series of possible locations that are stored as a sequence of foreign keys class Job acts_as_ferret { :locations => {} } def locations "1,25,23,15" # ?? end end Is that a good way to store the location ids? How would I search for Jobs in a certain location Job.find_by_contents(''locations(25)'') cheers
2006 Aug 09
0
association dows not grt foreign key
I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship any ideas? cheers dion --------------------------------- class Person < ActiveRecord::Base has_one :address validates_presence_of :email --------------------------------- end
2006 Aug 09
0
Re: association does not get foreign key
On 8/10/06, Dion Hewson <dionhewson@gmail.com> wrote: > > I have a 1 to 1 relationship using a similar example as below (has_one, belongs_to) > > but when I do the save, the foreign key of the child object is not set to the id of the parent object in the relation ship > > > any ideas? > > cheers > > dion > > --------------------------------- > >
2006 Aug 14
1
2 foreign keys to one table
Hi, I have a messaging class that has to relationships to one table belongs_to :user, :foreign_key => "from_id" belongs_to :user, :foreign_key => "to_id" At the min I can specify message.user.login and it will return the username of last relationship to that table. how can I get it to bring back both references ie message.from.login and message.to.login thanks scott
2006 Aug 15
1
sorting attribute in list from foreign table
Hello, I currently have two tables. table_a ( id table_b_id other_attrs ) table b ( id name ) So table A holds an id from table B. During the listing of tuples in table A, it lists table A''s attributes. In place of the table B id, I check the id, and instead display the name corresponding to that id. Now I want to be able to sort the listing of tuples in table A by the
2006 Aug 16
0
Filtering pagination results on a foreign table criteria
I have a one-to-many relation between my documents and statuses tables. I want to display only the documents whose states are not "Published". I haven''t figured out how to do this using the standard paginate method (maybe there''s a way using its :joins option). I''m also considering writing a custom paginator or using paginate_by_sql[1]. Does anyone have
2006 Jul 06
2
Scaffold with Foreign Key fields possible?
When you do a scaffold, is there a fast way to force it to let you enter in data for any foreign/primary key fields? Thanks, Ben Lisbakken -- Posted via http://www.ruby-forum.com/.
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/.
2006 Jul 10
1
Migration and foreign keys
Hi, I''m using the ''rake db_schema_dump'' command to clone the structure of the developement database into the test database. Unfortunatelly, the schema.rb file doesn''t contain any information about the foreign keys of the tables. For this reason all the test that concern about the relations are not working has suposed. Is this a limitation of Rails or am I