Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Capitalize first letter of each checkbox label

  • Loading branch information...
commit e13350fa6debe2b719b643db2705a2ac6734eabd 1 parent 890c093
@jackfranklin jackfranklin authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 app/views/partials/questions/_document_type.html.erb
View
5 app/views/partials/questions/_document_type.html.erb
@@ -3,10 +3,7 @@
<% @transaction.document_types.each do |value,label| %>
<li>
<%= label_tag "transaction_document_type_#{value}" do %>
- <%
- formatted_label = label
- formatted_label[0] = formatted_label[0].capitalize
- %>
+ <% formatted_label = label.dup.tap {|l| l[0] = l[0].upcase } %>
<%= radio_button_tag "transaction[document_type]", value %> <%= formatted_label %>
<% end %>
</li>

0 comments on commit e13350f

Please sign in to comment.
Something went wrong with that request. Please try again.