Now of course I'm having trouble with the default fields in edit. I've 
changed edit.html.erb so that editing an existing claim works.

Here's my edit.html.erb

<h1>Edit Claim's Information</h1>


<%= "Enter claim number #{h(@claim.claim_number)}'s information." %>

<% form_for :claim, :url => claim_path(params[:id]),
     :html => {:method => :put} do |f| %>
  <p>
    Patient Number:
    <%= text_field_tag :patient_number %>
  </p>
  <p>
    Doctor Number:
    <%= text_field_tag :doctor_number %>
  </p>
  <p>
    Procedure Code:
    <%= f.text_field :procedure_code %>
  </p>
  <p>
    Date Performed:
    <%= f.text_field :date_performed %>
  </p>
  <p>
    Doctor Filed:
    <%= f.text_field :date_filed %>
  </p>
<%= submit_tag "Save Changes" %>
<% end %>
<%= link_to "Or go back to claim information.",
    claim_path(:id => @claim.id)   %>

Is there some way to manually set what the default text is in a text 
field?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to