Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Created October 21, 2012 20:23
Show Gist options
  • Select an option

  • Save aalvesjr/3928390 to your computer and use it in GitHub Desktop.

Select an option

Save aalvesjr/3928390 to your computer and use it in GitHub Desktop.
Testes com FormHelper
<!-- Antes -->
<span>
<% select_tag "release[instalments_attributes][#{count}][payment_id]", options_for_select(@payments,@release.instalments[count][:payment_id]), :class => 'select' %>
</span>
<!-- Depois -->
<span>
<%= i.select :payment_id, @payments, {}, :class => 'select' %>
</span>
<!-- Datas -->
<span>
<%= i.date_select :paid_at, {:order =>[:day, :month, :year], :include_blank => true}, { :class => 'select'} %>
</span>
<!-- Ruby <3 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment