Reputation: 878
I'm trying trying to upload a file via Paperclip, but I'm getting an error i don't understand:
undefined method `image_files_path'
The evil Code (Line 2) is
<h1>File Upload</h1>
<% form_for(@imageFile,:html => { :multipart => true }) do |f| %>
<%= f.error_messages %>
<%= f.label 'Photo' %><br />
<%= f.file_field :image %>
<% end %>
Upvotes: 1
Views: 569