I want users to be able to upload an image and have it be associated with a particular model. When I create my migration, what type do I use for my column? In the view I would like it to look something like this:
<%= form_for @person, :html => {:multipart => true} do |f| %>
<%= f.file_field :picture %>
<% end %>
Thanks guys 🙂
Probably
:binary— but, have you considered using something like Paperclip to handle image uploads for you? It can get really complicated otherwise.