Permalink
Browse files

Multiline comments field

  • Loading branch information...
danielfone committed Oct 19, 2013
1 parent 5a51271 commit f82821e4737a76964ba0b507f6596b381e60a77a
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/views/reimbursements/_form.html.erb
  2. +1 −1 app/views/reimbursements/show.html.erb
@@ -16,7 +16,7 @@
<div class="control-group">
<%= f.label :comments, :class => 'control-label' %>
<div class="controls">
- <%= f.text_field :comments, :class => 'text_field' %>
+ <%= f.text_area :comments, :class => 'text_field', rows: 5 %>
</div>
</div>
<div class="control-group">
@@ -9,7 +9,7 @@
<dt><strong><%= model_class.human_attribute_name(:payee_id) %>:</strong></dt>
<dd><%= @reimbursement.payee.name %></dd>
<dt><strong><%= model_class.human_attribute_name(:comments) %>:</strong></dt>
- <dd><%= @reimbursement.comments %></dd>
+ <dd><%= simple_format @reimbursement.comments %></dd>
<dt><strong><%= model_class.human_attribute_name(:data) %>:</strong></dt>
<dd><%= @reimbursement.data %></dd>
</dl>

0 comments on commit f82821e

Please sign in to comment.