Keeping file field if error

hi, i’m doing a plugin for upload files, but after upload i have to
validate some fields and if don’t pass de validation come back to the
create page keeping the introduced dates, so the user can change the
wrongs date without itroduce all again, my problem is that i can keep
all the dates less the file, and i’d like keep it too, any idea?

the code of the controller for keep dates:

def new

@document =[:document])
@document.project_id =
@edit_metadata = false[:file])
@metadata =[:metadata])

and in the view the file is loaded with:

<%=l(:label_attachment)%>* <%= file_field_tag 'file', :size => 30, :id => nil -%>


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs