Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
File upload form
<h3>Upload a New Picture</h3>
<%= form_for @picture do |f| %>
<div class="form_field">
<%= f.label :description %>
<%= f.text_field :description %>
<div class="form_field">
<%= f.label :file, "Choose File..." %>
<%= f.file_field :file %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment