search for: illness_d

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

Did you mean: illness_id
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
...illnesses # I can''t figure out what should go here to update each of the records # with the new content returned from the form. How do I pull the # data from the params hash of hashes? The current code is: i.update(params[:illness].id, (params[:illness].id).illness_date, (params[:illness].id).qualifier) i.save end redirect_to :controller => ''creation'', :action => ''show_emrec'' end ---------------------- end controller code ------------------------- ------------------ view code ----------------------...
2006 Mar 09
3
problem with find()
I''m trying to update records in a table based on data I get back from a form. In the simplest case, the params structure returned from the form is: {"illness"=>{"1"=>{"illness_date"=>"", "qualifier"=>""}}} The controller code works (i.e., updates the first record) when I do the following: params[:illness].each do @rec = 1 @to_update = Illness.find(@rec) @to_update.qualifier = "test" @to_upda...
2006 Jun 26
3
syntax for observe_field( :with =>
Greetings! What is up with the syntax of this thing? I mean, if the only thing I can send back using :with is the field being observed, then why in the world is the syntax so convoluted? For example, what I''ve been able to get working is: <%= text_field_tag(''date'', illness_date, :size => 30) %></p> <%= observe_field(''date'', :url => {:action => ''update_date'', :id => illness_id}, :with => "''idate=''+$(''date'').value" ) %> Of course, maybe I''m just doing...
2006 Jun 27
2
Bug in Firebug or in RJS? Or something else?
I''m getting a really strange result using RJS page.replace_html and wonder if anybody knows anything that could help me figure it out. I''m rendering a partial in a loop in edit.rhtml that puts a set of <div>s on the page, each <div> containing a checkbox_tag with an associated observe_field and a text_field_tag also with an associated observe_field. When the