% form_for(@contract) do |f| %> <%= f.error_messages %>
<%= f.label :Template %> <%= select_tag("boilerplate_select", options_for_select(ContractTemplate.all.collect{ |c| [c.name, c.id] }.insert(0, '')), {:onchange => "showboiler(this.value)"}) %> <%= f.hidden_field :signature %> <%= f.hidden_field :boilerplate %>
<%= f.submit 'Update' %>
<% end %> <%= link_to 'Back', contracts_path %>