similar to: enforcing special behavior of child rows in HABTM

Displaying 20 results from an estimated 3000 matches similar to: "enforcing special behavior of child rows in HABTM"

2009 Apr 10
1
ActiveRecord question
Hello there, newbie speaking Let''s say I have: class Office has_many :holidays #(just a list of dates when the office is closed) has_many :doctors #doctors who work in the office end class Doctor belongs_to :office has_many :holidays #(additional dates when this doctor is not available) end class Holiday (has a office_id, doctor_id and a date field) end From the app standpoint I
2011 Sep 26
1
Restructuring data - unstack, reshape?
Hi all, I'm having a problem restructuring my data the way I'd like it. I have data that look like this: Candidate.ID Specialty Office Score 110002 C London 47 110002 C East 48 110003 RM West 45 110003 RM
2008 Jun 08
1
Unable to get selected option with options_from_collection_for_select
I''m in Rails 2.1, Ruby 1.8.6 -- http://pastie.org/211063 <%= params[:doctor_id] %> <%= options_from_collection_for_select(Doctor.active, :id, :name, :selected => params[:doctor_id]) %> <%= options_from_collection_for_select(Doctor.active, :id, :name, :selected_value => params[:doctor_id]) %> Returns: 53 <option value="49">Michael
2006 Nov 02
5
RJS error in internet explorer
hey all, got a rails app i''m finishing up. i have a little ajax on one of my pages where the person can choose a doctor from a drop down list and if the doctor isn''t there they can click a link which blinds down a little form to add a doctor. after they submit that mini-form the page updates the div which houses the drop-down so the doctor shows up. works very nicely IN FIREFOX.
2011 Jul 19
1
Lattice plot problem outputting to jpeg
Hi.....I am relatively new to R but was quite pleased with myself at having generated a series of lattice plots as PDFs. I was very surprised when plotting these out as jpegs (or png or tiff) that the strip title information above each lattice plot vanished. The pdf was fine. Has anybody any ideas? I can't add an image as the information is sensitive. Many Thanks Steve Creamer Here is the
2012 Dec 18
1
Arel limit Where if fields are present
I trying to create a select using Arel but I''m passing three parameters, I want to include the parameters only if they are different to nil or blank. Here is my method: def self.advsearch(summary_description, specialties, place) User.joins(:experience,:summary,:information) .where(Information.arel_table[:business].eq(false))
2006 Feb 15
5
dispatch.cgi error affecting specific browsers
I have a rails app that is accessed through Apache 2 (just using cgi now; will add fastcgi later when everything is working). The app works fine with some os/browser combos at my work site: windows/IE Mac/safari Mac/firefox Linux/firefox But it fails on windows/firefox and my colleague''s (at a different site) mac/safari (we are running the same os version and version of safari) The
2006 Jan 04
3
SIP/IAX softphones for use in call centre environments
I've been working my way through the softphones listed on voip-info over the last few weeks and I've not really found anything to fit the bill. Has anyone had more luck? The environment is a small call centre of 5 users. Operators often need to be able to transfer calls to other operators with different specialties, so the softphone needs to be easy to use and quick to transfer calls.
2004 Mar 16
1
rights or read only
NetWare 6 sp4 server to windows 2000 server using cwrsync 1.2.1 when the cwrsync service writes the files to the server it uses it's own username and permissions. Does anyone have any suggestions as to how I can get this to write the files so common users and delete and change stuff? would the perverse permissions work with windows? Thanks, Matt Vorwald Network Engineer Lumber
2006 Jul 21
5
How to display data using helpers and collections
## application_helper.rb def name_field(object, options = {} ) html = "" html << "Title : " + select(object, ''title'') html << "Given Names :" + text_field(object, ''given_names'' html << "Family Name :" + text_field(object, ''family_name'' html end ## index.rhtml <div
2014 Nov 28
2
Re: [PATCH 1/1] inspect: Fix a bug in the *BSD root detection
On Friday 28 November 2014 14:31:01 Richard W.M. Jones wrote: > How about the attached patch? It's basically the same as your patch > but I moved the code between files and tidied up some whitespace > issues. Present in both the patches: > +/* On *BSD systems, sometimes /dev/sda[1234] is a shadow of the real root > + * filesystem that is probably /dev/sda5 > + * (see:
2011 Sep 08
2
Factors? I think?
First of all, let me apologize, as this is probably an absurdly basic question. I did search before asking, but perhaps my ineptitude didn't allow me to apply what I read to what I'm doing. Totally new to R, and haven't done any code in any language in a long time. Basically I've got categories. They're department codes for doctors (say, 9999 for radiology or 5555 for
2005 Dec 17
10
need some tips for applying patches
I am working with a legacy database that does not always follow the conventions for table names, primary key and foreign key column names, and join table names. This is no problem in my application code because Rails allows me to override the defaults. However it is making unit testing next to impossible because fixtures will still try and insert data into the wrong tables. Changing the
2009 Jul 24
1
Conditional sorting
Greetings! I am trying to figure out how to order a data frame by one variable conditioned on another. Here is an example of what I have: d <- data.frame(RUN = rep(1:3, each = 3), ID = 1:9, AUC = runif(9,1,100)) > d RUN ID AUC 1 1 70.2 1 2 86.5 1 3 20.1 2 4 74.3 2 5 53.6 2 6 67.6 3 7 99.9 3 8 47.3 3 9 41.3
2007 Aug 07
1
R2WinBUGS results not different with different runs
Hi All I dont know if anyone else has noticed the same thing, but with 2 subsequent runs of the same syntax, I am getting exactly the same results. I was expecting that results differ slighlty, say in the 4th or 5th decimal place. Is this a specialty with R2WinBUGS? Does it have something to do with the seed value? Isnt the seed value reset everytime I restart winbugs? Thanks Toby
2003 Oct 08
2
SUCCESS report: samba3 as single-sign-on provider in heterogeneous network
Hi all, to raise the bug vs success ratio i'd like to express my gratitude to all samba members and those who, though not in-core developers, generously supported noobs like me on this mail list. I've set up an environment two months ago and it has run without glitches or tweaks since then. Now as misusing my family as beta testers has worked out so nicely i will deploy an identical
2014 Nov 27
2
[PATCH 1/1] inspect: Fix a bug in the *BSD root detection
The assumption that Linux will map the MBR partition to /dev/sda1 and the BSD 'a' partition to /dev/sda5 is not always correct. Signed-off-by: Nikos Skalkotos <skalkoto@grnet.gr> --- src/guestfs-internal.h | 1 + src/inspect-fs.c | 55 +++++++++++++++++++++++++++++++++----------------- src/inspect.c | 6 ++++++ 3 files changed, 43 insertions(+), 19 deletions(-)
2011 Oct 31
1
Question on estimating standard errors with noisy signals using the quantreg package
Dear all, My question might be more of a statistics question than a question on R, although it's on how to apply the 'quantreg' package. Please accept my apologies if you believe I am strongly misusing this list. To be very brief, the problem is that I have data on only a random draw, not all of doctors' patients. I am interested in the, say, median number of patients of
2004 Jun 10
2
SAMBA installation
hi, just wanted to introduce myself. My company is currently running a very old version of Samba - 2.0.7. I have been upgrading our UNIX systems this past month and have reached Samba. I know, if this is anything like the past upgrades over the last few weeks, I will need some support. Nothing has installed successfully the first time around. I downloaded version 3.0.4 and will be
2012 Feb 09
3
Rearanging Data
Hi, This is only a small portion of the Data i am working on I want to make a subset of this data set( Data Set=Claims) MemberID ProviderID Vendor PCP Year Specialty 1 42286978 8013252 172193 37796 Y1 Surgery 2 97903248 3316066 726296 5300 Y3 Internal 3 2759427 2997752 140343 91972 Y1 Internal 4 73570559