I installed the plugin, but got stuck rewriting the view, from the
homepage, it says:
If you want the actual file to be sent you need to set the encoding of
the form to multipart. There is a convenient method in UploadColumn
that makes this really easy, instead of your usual form_tag
declaration simply use upload_form_tag.
but how exactly to change it? i m a newbie for ROR.
my partial form looks like this, can someone help me to rewrite it?
<%= error_messages_for :user %>
<% form_for :user do |f| -%>
<%= f.text_field :login %>
<%= f.text_field :email %>
<%= f.password_field :password %>
<%= f.password_field :password_confirmation %>
Upload A Mugshot: <%= f.file_field :avatar %>
<%= submit_tag 'Sign up' %><% end -%>