Editing software

<% form_for(@software) do |f| %> <%= f.error_messages %>

<%= f.label :company %>
<%= f.text_field :company %>

<%= f.label :version %>
<%= f.text_field :version %>

<%= f.label :key %>
<%= f.text_field :key %>

<%= f.label :platform %>
<%= f.text_field :platform %>

<%= f.label :asset_id %>
<%= select(:software, :asset_id, options_from_collection_for_select(Asset.find (:all, :order => "tag").sort {|x,y| x.tag.to_i <=> y.tag.to_i }, :id, :tag_with_name ) ) %>

<%= f.label :media_location %>
<%= f.text_field :media_location %>

<%= f.label :installed %>
<%= f.date_select :installed %>

<%= f.label :installed_by %>
<%= f.text_field :installed_by %>

<%= f.label :note %>
<%= f.text_field :note %>

<%= f.submit 'Update' %>

<% end %> <%= link_to 'Show', @software %> | <%= link_to 'Back', softwares_path %>