Browse Source

fix file input in contact form

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
d1b8c05758
  1. 2
      app/views/pages/contact/_form.html.erb

2
app/views/pages/contact/_form.html.erb

@ -12,7 +12,7 @@
<div class="inputs"> <div class="inputs">
<%= f.input :name, label: 'Your name' %> <%= f.input :name, label: 'Your name' %>
<%= f.input :email, label: 'Your email' %> <%= f.input :email, label: 'Your email' %>
<%= f.input :file, hint: 'can be attached optionally' %> <%= f.input :file, as: :file, hint: 'can be attached optionally' %>
<%= f.input :message, as: :text, input_html: { rows: 10 } %> <%= f.input :message, as: :text, input_html: { rows: 10 } %>
</div> </div>

Loading…
Cancel
Save