I have a Rails 2.3.5 application that has the function of downloading files using paperclip. When I upload a file, for the first time everything works fine. But the second time I try, I get the following error message:
uninitialized constant ActiveSupport::MessageVerifier::Encoding
From the track, this looks like a problem with form_authenticity_token.
<% form_for @import, :html => {:multipart => true} do |f| -%>
<ul>
<li><%= f.label :source, "Select a file to import" %></li>
<li><%= f.file_field :source %></li>
<%= submit_tag 'Submit' -%>
</ul>
<% end -%>
If I clear the browser cache, I can make it work again. So I think this is related to the / tempfile session, etc. I just don’t know what exactly :) Is something missing here? Any help is appreciated
Thanks Abhilash
source
share