[Rails] file_column

Scott
Tue, 02 May 2006 09:40:33 -0000

Gi,

Im attempting to use the file column plugin, but having a few problems.

In quote.rb I have
class Quote < ActiveRecord::Base
file_column :image

has_one :project
end

then In my _form.rhtml, I have
Quote file
<%= file_column_field "quote", "image" %>


However im gaining this error message, is there somthing I hneed to
place in quotes_controller to get this to work? or any other suggestions
to what could be going wrong?


NoMethodError in QuotesController#new

undefined method `file_column'' for Quote:Class