In my item upload view I have:
<%= file_field ‘item’, ‘file’ %>
and in my Item model:
#@file.original_filename # <- also tried this
And if the upload bails because of errors (and renders the same page),
all other fields
(text_field, text_area, etc.) retain their inputted values, but the file
field is blank. Any idea
what the problem is?
I’m using this tutorial as a guide:
Yahoo! FareChase: Search multiple travel sites in one click.