Displaying 5 results from an estimated 5 matches for "doctor_id".
Did you mean:
_actor_id
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 Summer...
2009 Apr 10
1
ActiveRecord question
...;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 would like to be able to allow the
administrator to set office-wide closed dates, but to allow an
individual doctor to augment that list with additional dates he/she
won''t be available in.
What is the best/most elegant way to retrieve the m...
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
...ms.has_key?("commit")
if params[:cancel]
page[:phys_form].visual_effect :blind_up
else
page[:phys_form].replace_html :partial => ''phys_form''
page[:phys_form].visual_effect :blind_down
end
else
if @doctor.save
page.insert_html :bottom, ''doctor_id'', ''<option value="'' +
@doctor.id.to_s + ''">'' + @doctor.name + ''</option>''
page[:phys_form].visual_effect :blind_up
else
page[:phys_form].replace_html :partial => ''phys_form''
end
en...
2006 May 26
0
Hellp needed with sublist plugin
...uot;7",
"enddate(3i)"=>"1", "parent"=>#<Parent:0x37fbad0
@attributes={"prefix"=>"van", "enddate"=>"2006-07-01",
"postcode"=>"1234AB", "adress"=>"Astraat", "doctor_id"=>"1",
"lastname"=>"Vleuten", "id"=>"1", "phone"=>"0123456789",
"town"=>"Groningen", "startdate"=>"2005-09-01"}>},
"day"=>{"startdate(1i)"...