Skip to content

Instantly share code, notes, and snippets.

@djcas9
Created June 10, 2009 07:19
Show Gist options
  • Save djcas9/127069 to your computer and use it in GitHub Desktop.
Save djcas9/127069 to your computer and use it in GitHub Desktop.
<% for ticket in @report.tickets %>
<% fields_for "report[ticket_attributes][]", ticket do |ticket_form| %>
Company: <%= @clients = Client.find(:all, :order => "company_name")
collection_select("Company", "client_id", @clients, :id, :company_name ) %>
Ticket: <%= ticket_form.text_field :ticket_number %>
Status: <%= ticket_form.select :progress, ["Open", "In Progress", "Closed"], :multiple => false %>
<br />
<br />
<%- end -%>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment