Displaying 7 results from an estimated 7 matches for "case_id".
Did you mean:
base_id
2006 Apr 07
4
STI and foreign_key problem
...l case (I
realize I could just set a flag to separate them, but there is a good
reason to separate them), but both need to be related to the children
table. Here is the model code:
class Case < ActiveRecord::Base
end
class Registered < Case
has_many :children, :foreign_key => "case_id"
end
class Initial < Case
has_many :children, :foreign_key => "case_id"
end
class Child < ActiveRecord::Base
belongs_to :initial
belongs_to :registered
end
When I attempt to access the children attribute via an Initial object I
get an unknown column exception and...
2006 Jul 10
9
ROR questions
...d "redirect_to" when working with .rhtml forms in the Controller?? When is it appropriate to use these?
?
Second - ?Why do I sometimes have to use a while loop to access my queried data in the .rhtml form?? Example:
?
Controller-Edit Method
@edit = Cause.find(:all, :conditions => "case_id = ''#{@caseid}''")
?
View-Edit.rhtml
<h2>Editing Case <%= @edit.case_id %>
?
This method of data retrieval has worked for me in other similar forms, and I can''t figure out why it won''t work here.? The error it gives is that case_id is not a valid m...
2006 Aug 07
1
datetime_select problems
...e code works and loads the saved data in another one of
my update forms, and the only difference is that with this form,
the one that won''t work, I have my form data retrieval in a do loop,
because I did not search by id in my controller.
I am instead searching by my session variable (case_id),
which I understand returns an array, so I need the loop:
@caseid = session[:case_id]
@report = Report.find(:all, :conditions => "case_id = ''#{@caseid}''")
Could the presence of a do loop cause the datetime_select to
not function properly?
Any help always appr...
2006 Jul 13
5
Relationships: one model referencing same table for different data sets?
Hi,
After I''ve saved, I want to display the Description from the Codes table that
corresponds with the ID in the Cause table.
Rails doesn''t seem to like that, because on my form, I have two sets of data in
combo boxes that come from the Codes table. So, in the show template, I can''t
do this:
Cause of Death: <%= @cause.code.description %>
Any ideas?
The
2006 Mar 15
5
Passing params to a component
I see from http://rubyonrails.org/api/classes/ActionController/Components.html
that is possible to pass paramaters to a component.
I don''t understand the exact syntax.
I''m trying:
@master_id = @params[''master_id'']
in the components controller but it is not working.
==== Details:
In my calling view I have:
<%= h(@opportunity.id) %>
<div
2009 Jun 02
0
Conducting data modelling on weighted data using R
...h I can use packages such as these on un-weighted data there does not appear to be a facility to take account of weighted data.
I am a statistician working for a Market Research company where in many projects I work on weighted data. Typically, the data will be structured in the following manner:
Case_id y x1 x2 x3 x4 weight
1 5 3 4 1 4 0.345
2 3 4 3 1 5 0.543
3 2 2 3 3 3 1.456
4 4 4 2 4 3 0.345
5 3 3 4 3 2 1.200
.
.
etc
The above data is fictional. Where y is the dependent variable, and there are 4 independent variables (x1, x2, x3 and x4), and weight is the weighting factor variable....
2005 Nov 11
0
Re: samba smbd version 2.2.12 HP CIFS Server A.01.11.04 does hang if start in a HP serviceguard configuration
...______________________________________________
>- Registrieren Sie sich im ITRC und er?ffnen und monitoren Sie Ihre Cases online.
> <http://europe.itrc.hp.com/service/mcm/homepageRequest.do>
>- Informationen zu dem Case k?nnen Sie mir auch gerne per eMail senden.
> <mailto:[case_id]@cases.europe.hp.com?cc=first.lastname@hp.com>
>- Besuchen Sie das IT Resource Center und die Foren
> <http://europe.itrc.hp.com>
> <http://forums.itrc.hp.com>
>- HP Software Depot
> <http://software.hp.com>
>- Handb?cher/Dokumentationen
> <http://doc...