Adicionar Novo Item
<% @forma_pagamento_item = FormaPagamentoItem.new %>
<%= error_messages_for :forma_pagamento_item %>
<% form_for(@forma_pagamento_item) do |f| %>
<%= f.hidden_field :forma_pagamento_id, :value => @forma_pagamento.id %>
Tipo pagamento *
<%= f.collection_select :tipo_pagamento_id, TipoPagamento.find(:all), :id, :descricao, :prompt => 'Selecione um Tipo' %>
Percentual *
<%= f.text_field :percentual, :size => 3, :maxlength => 3 %> %
Dias *
<%= f.text_field :dias, :size => 3, :maxlength => 3 %>
<%= f.submit "Adicionar" %>
* Campos obrigatórios
<% end %>