/ Published in: Rails
URL: http://www.ruby-forum.com/topic/123062#547930
Set the enctype attribute of a form created with form_for. HAML markup below, but the same technique works in ERB.
Expand |
Embed | Plain Text
- form_for :springfield, :url => {:controller => 'homer', :action => 'drink_beer'}, :html => {:multipart => true} do |form| = form.file_field :path_to_beer = form.submit
You need to login to post a comment.
