jhbruhn
jhbruhn

Reputation: 878

Rails Paperclip undefined method `image_files_path'

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

Answers (1)

Said Kaldybaev
Said Kaldybaev

Reputation: 10002

add in routes.rb

resources :image_files

Upvotes: 2

Related Questions