similar to: Multiple associations to the same class

Displaying 20 results from an estimated 200 matches similar to: "Multiple associations to the same class"

2005 Dec 14
5
belongs_to and multiple foreign keys
Hi all, I''m confused about how I''m supposed to specify a belongs_to relationship when the table includes multiple columns that reference the same parent table. In my case I have a "schedules" table with "opened_by" and "closed_by" columns, that both reference the "users" table. In theory, they can be two different user ids. table
2019 Nov 16
2
[Bugzilla] Is Bugzilla down?
Hi, It seems that Bugzilla (https://bugs.llvm.org/) is down, when I using the search engine. -- Best Regards, Xing
2005 Feb 09
1
cant map foreign key in list view
Hi I have been struggling to get a foreign key in a list map to a readable value in a lookup table I have a list of projects and each project has a project_manager. Project.rb class Project < ActiveRecord::Base has_one :project_manager, :class_name => "Users", :foreign_key => "manager_id" end The association above sais that a project_manager is in
2006 Jul 21
1
Partial, Table Layout, Multiple Controllers/Models... DRY?
Hi, I am almost embarrased to ask this and I am sure it has been answered previously but the search feature is down on ruby-forum so I am not finding the answer. I have several controllers (leads, orders, activities, etc...). I have a ton of repeated html in each of the views for these controllers. For example, my list view has the same table/tr/td and for..in type of code and it just
2006 Jul 06
4
Oracle HR on Rails
Interesting read...apologies if it has been posted already. http://www.oracle.com/technology/pub/articles/saternos-rails.html -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060706/619e650a/attachment.html
2017 Jul 24
2
Wiki rights requested: Various SIG pages
I'm hoping to update https://wiki.centos.org/SpecialInterestGroup and bring it more in line with reality. As such, can I please get edit rights to https://wiki.centos.org/SpecialInterestGroup and the docs under that? Thanks. -- Rich Bowen - rbowen at redhat.com RDO Community Liaison http://rdoproject.org @RDOCommunity
2006 Feb 09
2
Crazy @55 Inheritance
I have one table, called "people". Within this table, there are type "users", "managers".... etc. So, basic STI. Now, I want a "user" to have one manager, but a "manager" to have many "users". Since I don''t want to use HABTM... how do I set this relationship up seeing that :has_one, :belongs_to and :has_many don''t
2007 Mar 06
2
Manager.conf '127.0.0.1 unable to authenticate'
Every few seconds I get the following message: == Parsing '/etc/asterisk/manager.conf': Found == Connect attempt from '127.0.0.1' unable to authenticate I'm trying to track down where it's coming from. I've used TCPDUMP & NGREP to monitor 127.0.0.1, no data's flowing. I've tried loading Asterisk with no modules, tried loading with a naked
2006 Jan 09
3
Include with two references of one model of the same table
Hey guys, I just came across this oddity, not sure what to make of it yet, but I think it might be incorrect behavior. When doing a @inst.find(:all, :include => ["hometeam", "awayteam"] ...) hometeam and awayteam are two references from a belongs_to that is of the same model and of the same table. I will get a pgerror stating that "matches", which is
2006 Feb 10
1
Eager loading issue
I have three tables, Invoices, Projects, and Managers. Each manager has many projects. Each project has many invoices. When displaying a list of the invoices, I am using: Invoice.find(:all, :include => [:project]) Since the list shows information from the project table. (For example, a table showing Invoice Date, Project Name). However, I''d also like to show the manager name.
2015 Dec 09
5
wifi on servers and fedora [was Re: 7.2 kernel panic on boot]
On Tue, December 8, 2015 11:05, Matthew Miller wrote: > >> I have been bitten by things done in Fedora that only have any use >> on >> a laptop and that should never have been allowed into a server >> distribution. But I cannot see how I would have been aware of them >> until they manifested themselves on equipment under my care. By >> which > > ^
2009 Jul 21
1
synatx error while running migration
hello to all, i am getting weird syntax error while running the rake db:migrate syntax error, unexpected tSYMBEG, expecting kDO or ''{'' or ''('' Apparently i am creating an engine in my main application using ''ruby script/generate plugin'' command in rails 2.3.0 with engine having its own separate database define in database.yml of main
2017 Jul 25
2
Wiki rights requested: Various SIG pages
On 07/24/2017 03:09 PM, Alan Bartlett wrote: > On 24 July 2017 at 18:33, Rich Bowen <rbowen at redhat.com> wrote: >> I'm hoping to update https://wiki.centos.org/SpecialInterestGroup and >> bring it more in line with reality. As such, can I please get edit rights to >> >> https://wiki.centos.org/SpecialInterestGroup >> >> and the docs under that?
2006 Sep 25
3
Subclasses - help required
Hello all and hoping for some insight a project manger type of application, staff are assigned to projects, but each staff has varied roles for different projects... STI does not seem to be applicable here Imagine a table staffs... id int name varchar blah.... is_manager int 1 is_engineer int 1 is_producer int 1 and projects... id name manager_id engineer_id producer_id how is the best way
2004 Sep 22
5
Issue with predict() for glm models
[This email is either empty or too large to be displayed at this time]
2008 Jul 15
9
Beginner Question.
I''m just getting into RoR, coming from a long PHP background. So far I LOVE IT! I''m hitting a roadblock with updating my mysql database. For simplicities sake, I have 2 tables and here are the relevant columns. Table Users id name email Table Issues id createdby assignedto reportedby In my models I have everything mapped properly I believe. When I try to update the
2024 Feb 15
1
VPAT OR Accessibility Conformance Report Request
To Whom It May Concern, My name is Zach Benner and I am the Accessibility (A.D.A.-Americans with Disabilities Act) Coordinator here at University of Maine at Machias. I am reaching out on the behalf of our science professors here at UMM. The professor is looking to utilize your software to implement within his courses however, due to possible accessibility concerns our IT department will not
2024 Feb 15
1
VPAT OR Accessibility Conformance Report Request
To Whom It May Concern, My name is Zach Benner and I am the Accessibility (A.D.A.-Americans with Disabilities Act) Coordinator here at University of Maine at Machias. I am reaching out on the behalf of our science professors here at UMM. The professor is looking to utilize your software to implement within his courses however, due to possible accessibility concerns our IT department will not
2012 Apr 25
1
Position available University of Oxford UK
// ///Clinical Information Technology Research Assistant (102792) We are looking for a Clinical Information Technology Research Assistant to work on the Oxford component of the EURECA FP7 project (Enabling information re-Use by linking clinical REsearch and CAre). The post-holder will be in the Oxford component of the EURECA project and will focus on achieving the deliverable of the project
2015 Sep 18
4
Heads up: Bug in CMake found when attempting 64-bit build with 32-bit clang-cl.
Hi Nico, Hans, Takumi, I made it to the bottom of the issue. Turns out that CMAKE_C_FLAGS=-m64 CMAKE_CXX_FLAGS=-m64 CMAKE_EXE_LINKER_FLAGS=/machine:x64 is enough to do a 64-bit build correctly with a 32-bit clang-cl (i.e. one that targets 32-bit by default). Hooray! The missing piece that I had to track down is why I would see `deps = msvc` stuff spewing onto my terminal, rather than consumed