/ Published in: Rails
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- in new.html.erb --> <% form_for(@statset, :html => {:multipart => true}) do |f| %> <%= f.file_field :upload_file %> <% end %>
URL: http://www.ruby-forum.com/topic/123062