similar to: How to declare several HABTM-relationships?

Displaying 20 results from an estimated 2000 matches similar to: "How to declare several HABTM-relationships?"

2006 Mar 27
1
Best way about doing this?
Hi All, I''m super a super ruby nuby, so bare with me. I am working on a small app that has a particular form that I am having a rough time figuring out the best to way to handle. Basically here it is, each school has one or more classrooms, and each classroom can have one or more teachers. Here''s what I am trying to do (edit a school): - click on a link to edit a School -
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, Esta pregunta la hice en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808>pero nadie pudo contestarla. 1. Quiero generar N escuelas, con G grados y C divisiones. 2. Quiero asignar cada uno de T maestros a 2 divisiones en un grado y escuela Si tengo C=4 divisiones, puedo lograr lo que quiero con
2015 Jul 13
2
Crear datos aleatorios con restriciones
Hola, 0. La falta de 'elegancia' hace que sea mas dificil hacer cambios al codigo. Por ejemplo cambiar n.classrooms <- 4 a n.classrooms <- 20 1. Cuando tengo solo 4 puedo hacer esto: schoolGrade$A <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$B <- Teachers$Teacher.ID[1:cuttoff1] schoolGrade$C <- Teachers$Teacher.ID[(cuttoff1+1):n.teachers] schoolGrade$D <-
2015 Jul 13
2
Crear datos aleatorios con restriciones
Gracias Carlos, Tu codigo es un gran paso en el sentido correcto pero no produce exactamente lo que estoy buscando. Mi "solucion" en stackoverflow <http://stackoverflow.com/questions/31137940/randomly-assign-teachers-to-classrooms-imposing-restrictions/31143808#31143808> produce un data frame `schoolGrade` con 240 observaciones y 7 variables. Mi objetivo es poder generar un data
2015 Jul 13
2
Crear datos aleatorios con restriciones
Perdon por no se lo suficientemente claro :( Tu codigo produce `validPairs` que tiene 7 variables y 360 observaciones. Donde > validPairs[1,] V1 V2 V3 V4 V5 V6 valid 60 e1 g1 c1 e1 g1 c2 Valid indica que un maestro tiene asignado c1 y c2 en la escuela e1 y el grado g1. Correcto? Si es asi, esto es casi lo que queira producir y creo que puedo llegar a donde quiero usando tu codigo de base.
2005 Mar 14
1
School design question
My school district will be building a new elementary school in 2006. We were about to go to bid with a traditional intercom system for the campus but I would like implement Asterisk at the campus. My question is, do we build in a traditional intercom/paging system and tie that into the Asterisk PBX, the way such intercoms have been connected to other PBX's in our district in the past, or
2006 Jun 13
2
R kicking us out
Dear R People: I am using R for teaching purposes in a large classroom. Each computer has its own copy of R. However, every once in a while, about half of us will get thrown out of R, for no apparent reason. By the way, it has happened in other classrooms as well. Has anyone else run into this, please? If so, how have you solved this problem, please? Thanks in advance! R for Windows
2006 May 10
1
Validates_uniqueness_of multiple field combo?
Hello, I am new to Ruby on rails and this is therefore probably trivial. Lets say I have 3 tables - users[id,name, age, ...], interests[id,name,description, ...], and finally a table user_interests[id,user_id,interest_id] to link a user to a set of interests. Now there is no problem to put validates_uniqueness_of :name in the user-model to ensure that I only have one Lenny, but how do I
2004 Oct 06
1
Dynamic changes while Shorewall running?
I am looking at using Shorewall in a local college. There will be a default set of firewall rules, but for some lessons certain classrooms will be granted full Internet access (this will be done by the lecturer via a web interface). I am seeking suggestions for the best way to implement this under Shorewall. I think it might make sense to make each classroom a separate zone, but is there a dynamic
2003 Jun 19
2
Fitting particular repeated measures model with lme()
Hello, I have a simulated data structure in which students are nested within teachers, and with each student are associated two test scores. There are 20 classrooms and 25 students per classroom, for a total of 500 students and two scores per student. Here are the first 10 lines of my dataframe "d": studid tchid Y time 1 1 1 -1.0833222 0 2 1 1
2003 May 16
1
Problems with spaces prefixing usernames when using Samba as a PDC
Hi All, Has anybody seen (Hopefully solved ;) this problem? We're running samba 2.2.8a as a PDC for windows classrooms with an LDAP backend. What's happening is that users are waking up the windows machines by pressing the space bar and then logging in. They authenticate successfully (leading spaces ignored) but windows is miscreating the roaming profiles with leading spaces which
2011 Aug 17
7
XCP GUI management
Xen List After planning for a year to move my Xen 3.4 classrooms to XCP I''m now making an effort. With the old system I wrote many lines of bash scripts around the xm command to group and manage my VMs. I used sudo to grant privileges for each student to start, stop, console into, reboot, and wipe their VMs without any interaction from me. Now with XCP I had the hope of moving to the
2002 Aug 07
1
No subject
I've got a table of 1 row per observation. 16 questions * n subjects * 4 classrooms (2 teachers * 2 conditions) I'd like to run some simple regressions that look something like this: lm(length ~ elapsed) I'd like to do the regressions several times, split out by questionkey, student, class. What I've been doing is using a series of which's to create new data sets (e.g.
2006 Jan 19
5
Multiple HABTM relationships with self ???
I need to have a table related to itself via a join table. Will HABTM support this? That is: class Recipe < ActiveRecord::Base has_and_belongs_to_many :recipes, :join_table => "recipes_recipes" end More importantly -- how does RoR support MULTIPLE self-joins? I.e., to relate the table to itself via multiple join tables. SFAIK, HABTM won''t support multiple
2004 Jun 10
0
Terpstra Samba Workshops - Seattle, WA. 6/10-11
Hello Samba List- Apologies for the late notice on this. We have seats available for John H. Terpstra's Samba workshops on Thursday and Friday this week in Seattle, WA. He is conducting Samba 101 and Advanced Samba Thursday and Windows NT4/200X Migration to Samba-3 on Friday. Attendees receive a copy of "Samba-3 By Example" as part of the workshop(s). You can view class
2005 Oct 03
3
how do you manage printers on workstations?
How do you manage printers on Windows workstations? What I mean, suppose you have many classrooms, different printers (which sometimes change) in these classroms - how do you manage which workstation (or a group of them) will use which printer? So far I've been using WPKG for that - as I described here: http://wpkg.org/wiki/index.php/Printer_configuration But somehow I feel it
2006 Mar 25
1
Nuby: HABTM and drag-and-drop views
I have two tables that have a HABTM relationship: Teacher has_and_belongs_to_many Groups, and Group has_and_belongs_to_many Teachers. This is what I want: select a Teacher, and then drag Groups from one box to another to assign them to the teacher. Or, select a group, and drag and drop Teachers to assign them to groups. All using AJAX, (off course). Only problem is, I don''t know
1998 Aug 19
0
login failures and system load
First, I _do_ believe Samba is better than sliced bread (hey - you can't get fat by using too much Samba :), and I have enormous admiration and gratitude for the Samba Team. (Okay, no, I haven't sent any pizza vouchers...) But, I've got a problem (what else is new?) Win 95 clients in our public labs/classrooms are experiencing failed logins for good accounts and occasional failures
2006 Jan 12
1
Saving habtm relationships and Rails 1.0
I know there''s a problem saving has_and_belongs_to_many relationships w/ Rails 1.0 in that only the first association is saved (http://dev.rubyonrails.org/ticket/3213). What are people doing about this? I guess I could move to using the trunk release, but I''m hesitant because that might introduce a bunch of unknowns. Is there a workaround? For example, a way to explicitly
2006 May 23
1
after identify labels dissapear XP
Greetings: Using 'identify' to label points on a plot works just fine. However, when saving under 'metafile' or using the clipboard the labels dissapear. I believe it's an SDI issue. I am running last R with last Tinn-r under XP up to date. Anything I can do besides going back to MDI :-)? Thanks, Mihai Nica, ABD Jackson State University ITT Tech Instructor 170 East Griffith