Edição de Cheque

<%= error_messages_for :cheque %> <% form_for(@cheque) do |f| %>
Banco de Cheque *
<%= f.collection_select :banco_cheque_id, BancoCheque.find(:all, :order => "nome"), :id, :nome, :prompt => 'Selecione um Banco de Cheque' %>
Operação *
<%= f.select :operacao, Cheque::TIPO_OPERACAO, :include_blank => true %>
Banco *
<%= f.collection_select :banco_id, Banco.find(:all, :order => "nome"), :id, :numero_nome_banco, :prompt => 'Selecione um Banco' %>
Número *
<%= f.text_field :numero, :size => 12, :maxlength => 15 %>
Agência *
<%= f.text_field :agencia, :size => 12, :maxlength => 15 %>
Conta Corrente *
<%= f.text_field :conta, :size => 12, :maxlength => 15 %>
Valor *
<%= f.text_field :valor, :size => 15, :maxlength => 14, :onKeyUp => "formataValor(this)" %> reais
Data *
<% data = @cheque.data.strftime("%d/%m/%Y") %> <%= text_field_with_js_mask :cheque, :data, :value => data, :size => 10, :maxlength => 10, :class => 'mask_date_br' %>
Emitente *
<%= f.text_field :emitente, :size => 34, :maxlength => 100 %>
<%= f.submit "Salvar" %>
<% end %>
* Campos obrigatórios
<%= link_to 'Visualizar', @cheque %> | <%= link_to 'Voltar', cheques_path %>