Displaying 20 results from an estimated 900 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"
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 %>
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
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
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
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 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
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 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.
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
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
2006 Jul 02
11
Google maps api in ruby/rails
I''ve been looking for any modules/tools that are available for using
the google maps api in rails. I found a couple of quick examples, but
not much more. If anyone knows of good sites that cover using google
maps api in rails please post it here:)
Chris
2024 Aug 14
1
samba-tool user add - weird resulting
When creating AD user using 'samba-tool user add <username> ...',
there are switches for some human name parts specification:
--surname=SURNAME User's surname
--given-name=GIVEN_NAME User's given name
--initials=INITIALS User's initials
and samba-tool (or Samba daemon itself?) assembles other (LDB) attributes
from them:
dn : as
2024 Aug 14
1
samba-tool user add - weird resulting
On Wed, 14 Aug 2024 09:24:03 +0200
Franta Hanzlik via samba <samba at lists.samba.org> wrote:
> When creating AD user using 'samba-tool user add <username> ...',
> there are switches for some human name parts specification:
> --surname=SURNAME User's surname
> --given-name=GIVEN_NAME User's given name
> --initials=INITIALS
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
2007 Oct 14
1
Story Runner: DRYing items used in many stories
The number of stories I have is growing and I''m writing the following step
long hand in each story.
Given ''a user named'', ''Andy'', ''Watts'' do |first_name, family_name|
@email = first_name + ''@test.lan''
create_user( :first_name => first_name, :family_name => family_name,
:email => @email )
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 <-
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