search for: personnel_id

Displaying 4 results from an estimated 4 matches for "personnel_id".

2006 May 29
5
Find last
This seems rather ugly. I am thinking that this needs to be in the model but I am looking to obtain the date for a tb test... >> @tb = Innoculation.find(:all, :conditions => ["personnel_id = 1 AND innoc_type = ''TB''"], :order => ''innoc_date DESC'') => [#<Innoculation:0xb77ed234 @attributes={"id"=>"1", "innoc_type"=>"TB", "personnel_id"=>"1", "innoc_date"...
2006 Jun 04
3
passing a value in a hidden field inside a form
should be trivial but I can''t figure this out from api <%= hidden_field ''certifications'', ''personnel_id'', {value = #{@personnel.id}} %> I want to pass the value of ''id'' field in my form to the certifications controller as personnel_id Craig
2006 Jun 04
0
RE: Rails Digest, Vol 21, Issue 64
...rm > To: rails@lists.rubyonrails.org > Mesdosage-ID: <1149428769.713.5.camel@lin-workstation.azapple.com> > Content-Type: text/plain > > should be trivial but I can''t figure this out from api > > <%= hidden_field ''certifications'', ''personnel_id'', {value = > #{@personnel.id}} %> > > I want to pass the value of ''id'' field in my form to the > certifications > controller as personnel_id Not tried it myself in exactly the same scenario, but I had a similar problem with normal text fields. Solved...
2008 Jun 05
23
unit test question
In development and production, I''ve got postgresql constraints that prevent deleting a CaseManager if there is a Client that belongs to that CaseManager. In unit tests...and obviously in my testing db, those restrictions don''t get added. Is it wrong to test for deleting dependent records in unit tests? Craig --~--~---------~--~----~------------~-------~--~----~ You received