form_for with :multipart => true


/ Published in: Rails
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- in new.html.erb -->
  2. <% form_for(@statset, :html => {:multipart => true}) do |f| %>
  3. <%= f.file_field :upload_file %>
  4. <% end %>

URL: http://www.ruby-forum.com/topic/123062

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.