similar to: How to display data using helpers and collections

Displaying 20 results from an estimated 1200 matches similar to: "How to display data using helpers and collections"

2008 Dec 10
1
Oddness with fieldnames containing an underscore
Hi all, I''m not sure if this is a cucumber or webrat thing given that I only starting tinkering with both last night for the first time (testing newb as well), but I''ve come across an oddity when trying to write a scenario to create a user. Scenario: Register new user Given I am on the new user page And I fill in "login" with "fredf"
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
2005 May 17
2
Noob - ActionView::Helpers::FormOptionsHelper::select
Hi, I''m just starting with Rails and i''m trying to do something like this: <%= start_form_tag :action => ''add_user'', :id => @social_event_group %> <%= select ''user'', ''id'' , User.find_all.collect {|u| [ u.login, u.id ] }%></p> <%= submit_tag "Add User" %> <%= end_form_tag %>
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 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
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
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.
2008 Jun 05
2
xhr :post giving wrong number of arguments on rails 2.1?
Getting a strange error. In a story I have the following step: When "I submit a search name" do xhr :post, ''/searches'', {:search => {:given_name => "bob", :family_name => "smith"}} end I am getting: ArgumentError: wrong number of arguments (4 for 3) stories/searching_story_spec.rb:45 in "I submit a search name" But I only
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
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
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 Feb 07
3
[Possible spam] New project - any volunteers?
Greetings! (and apologies upfront for any duplication as a result of my cross-posting) It''s been five weeks now since I began working with RoR. My experience has been incredibly positive. So much so that I''m emboldened to undertake a project I''d previously concluded I no longer had the technical chops to even _start_. I''ve included a brief description of
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:
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
2007 Aug 20
7
OT: Suggestions for database for physicians patient records?
This is very OT. If list readers can point me in the right direction, to other mailing lists, or web sites for recommended databases, that will be much appreciated! My wife's doctor wants to move records, for approximately 6000 patients (over a 12 year period), from paper (18th century) to a database (20th century). The data entry will be a PITA, for his secretaries, regardless of what
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 <
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. >
2006 Nov 01
17
So how can I rewrite my app without using with_scope?
So, I hear that with_scope is going to be deprecated. Which is a bit of a shame, given the stuff I''ve been writing recently. I have a CMS with multiple clients. A ''client'' is essentially a company, with multiple users. Content on the site belongs to a client - content could be messages, images, schedules, etc etc. People belonging to one client should not be able
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