Reminder - rails forms with file uploads
Just a quick reminder for myself: if you're doing a form that is uploading files, remember to add :multipart => true to the form tag, e.g.:
[source:ruby]
< % form_for(:product, :url => products_path(@product), :html => {:multipart => true, :method => :put }) do |f| %>
< %= f.file_field :photo %>
< % end %>
[/source]
Bookmark/Search this post with


Comments
0 comments postedPost new comment