How to use UploadColumn

Hi,

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?
thanks.

<%= error_messages_for :user %>
<% form_for :user do |f| -%>

Login
<%= f.text_field :login %>

Email
<%= f.text_field :email %>

Password
<%= f.password_field :password %>

Confirm Password
<%= f.password_field :password_confirmation %>

Upload A Mugshot: <%= f.file_field :avatar %>

<%= submit_tag 'Sign up' %>

<% end -%>

Hi,

there is no helper for form_for in UploadColumn yet, it’ll be in the
next version, till then you can replace

<% form_for :user do |f| -%>

with

<% form_for( :user, :html => { :multipart => true }) do |f| %>

that should do the trick, ugly though it is.

/Jonas