similar to: ActiveRecord question

Displaying 20 results from an estimated 8000 matches similar to: "ActiveRecord question"

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 May 08
8
enforcing special behavior of child rows in HABTM
Hi, I have a scenario where a doctor can have one or more specialties. For each doctor, one and only one of her specialties can be designated as primary. So I have tables called doctors, specialties, and doctors_specialties, the last of which has a boolean is_primary column. The doctor model class specifies that: has_and_belongs_to_many :specialties I want to enforce, at the lowest possible
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.
2006 Apr 26
1
Bug in validates_associated?
Here is the setup: Windows XP, InstantRails, MySQL 14.7, Ruby 1.8.4, Rails 1.1.2 MODEL: class Office<ActiveRecord::Base has_many :users end class User<ActiveRecord::Base belongs_to :office validates_presence_of :office_id validates_associated :office <....other stuff...> end UNIT_TEST test/unit/user_test.rb def test_associations u = User.new u.office_id =
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
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
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
2012 Feb 01
1
Function to compute multi-response, multi-rater kappa?
I'm looking for a function in R that extends kappa to multiple raters when there is more than one response per subject. For example, say a group of doctors have to assign diseases to patients. Each patient will be assigned one to many diseases, and the number of doctors assigning diseases to any one patient will be two to many. Here's an extremely simple example of the type of data I
2008 Sep 01
3
convenient way to calculate specificity, sensitivity and accuracy from raw data
Dear R-colleagues, this is a question from a R-newbie medical doctor: I am evaluating data on inter-observer-reliability in endoscopy. 20 medical doctors judged 42 videos filling out a multiple choice survey for each video. The overall-data is organized in a classical way: observations (items from the multiple choice survey) as columns, each case (identified by the two columns "number of
2006 Jul 22
1
Input on application design
I have an online doctor/dentist search. Right now I have all the code in one controller, with separate views and actions for the doctor and dentist. About 80% of the code in both the controller and the view is shared. Doctors and dentists are in separate tables with different (yet very similiar) schema''s. So the sql queries are different, and some of the information displayed in the
2006 Aug 01
0
how do i pass/save a selected param ID to different views?
hi, i have a link called ''family doctor''. when the user presses the ''family doctor'' link, it goes through town''s DB and searches in which towns where there is a family doctor. after this is done, the view displays all the towns with the total number of ''family doctors'' in each town. next i want the user to select the town that
2009 May 10
1
Function recommendation for this study...
Hi, I'm not used to thinking along these lines, and wanted to ask your advice: Suppose you have a sample of around 100, consisting of patients according to doctors, in which patients and doctors are given a questionnaire with categorical responses. Each patient somehow has roughly 3 doctors, or 3 rows of data. The goal is to assess by category of each question or DV the agreement between
2010 Oct 10
9
Dovecot 2.0.5 and BSDI 4.3 again
Right, Changes made to dovecot-2.0.5/src/lib-master/master-service.c conn.listen_fd = l->fd; conn.fd = net_accept(l->fd, &conn.remote_ip, &conn.remote_port); i_error("conn.fd: %d",conn.fd); i_error("l->fd: %d",l->fd); i_error("&conn.remote_ip:
2010 Oct 07
1
Question on polymorphic association
I have 3 models . Doctor, Patient and User with following associations class Doctor < ActiveRecord::Base has_many :patients, :dependent => :destroy has_one :user, :as => :userable accepts_nested_attributes_for :user end class Patient < ActiveRecord::Base belongs_to :doctor has_one :user, :as => :userable accepts_nested_attributes_for :user end class User <
2004 Jul 19
3
why won't rq draw lines?
I've been trying to draw quantile linear regression lines across a scatterplot of my data using attach(forrq) plot(PREGNANT,DAY8,xlab="pregnant EPDS",ylab="postnatal EPDS",cex=.5) taus <- c(.05,.1,.25,.75,.9,.95) xx <- seq(min(PREGNANT),max(PREGNANT),100) for(tau in taus){ f <- coef(rq(DAY8~PREGNANT,tau=tau)) yy <-
2007 Jan 04
3
TC again - now working on VPN traffic
Hi! It''s me again bothering you guys, what I want to do is to give full bandwidth to VPN traffic and limit the rest to 30KB/s (kilobytespersecond), ok? Here''s what I have: tcclasses ################################## eth0 1 1kbps 70kbps 1 eth0 2 1kbps 30kbps 2 default eth1 3 15kbps 10000kbps 1 eth1 4
2016 Nov 04
2
Repeat e-mail syndrome shows up in 2.2.26+
On Wed, Nov 02, 2016 at 07:15:17PM +0200, Timo Sirainen wrote: > On 01 Nov 2016, at 18:26, The Doctor <doctor at doctor.nl2k.ab.ca> wrote: > > > > Getting complaints from people about pop/imap > > > > issues. > > > > some people are getting repaeted e-mail. > > > > Other are not able to delete their e-mails from an IMAP lcient. >
2024 Mar 07
1
Call for testing: OpenSSH 9.7
On Thu, Mar 07, 2024 at 05:07:49PM +1100, Darren Tucker wrote: > On Thu, 7 Mar 2024 at 14:54, The Doctor <doctor at doctor.nl2k.ab.ca> wrote: > [...] > > /usr/local/bin/openssl version -a > > ld-elf.so.1: /usr/lib/libssl.so.3: version OPENSSL_3.2.0 required by /usr/local/bin/openssl not found > > This is why configure (with the patch) didn't use that openssl
2016 Nov 08
1
Repeat e-mail syndrome shows up in 2.2.26+
On Tue, Nov 08, 2016 at 08:59:37AM -0700, The Doctor wrote: > On Tue, Nov 08, 2016 at 07:38:42AM -0500, Tom Talpey wrote: > > On 11/8/2016 2:24 AM, A.L.E.C wrote: > > > On 08.11.2016 08:04, The Doctor wrote: > > > > > >> In another account, I see lots of white items in RoundCude as if these items are > > >> hidden from Thunderbird hance blocking
2024 Mar 07
1
Call for testing: OpenSSH 9.7
On Thu, 7 Mar 2024 at 13:39, The Doctor <doctor at doctor.nl2k.ab.ca> wrote: > > On Thu, Mar 07, 2024 at 01:19:36PM +1100, Darren Tucker wrote: > > On Thu, 7 Mar 2024 at 12:00, The Doctor <doctor at doctor.nl2k.ab.ca> wrote: > > > On Thu, Mar 07, 2024 at 09:58:38AM +1100, Darren Tucker wrote: > > [...] > > > > Please try this patch. Note that you