[Rails] Re: file_column

Steve Koppelman
Tue, 02 May 2006 10:39:44 -0000

Also make sure you have a :string/varchar field called "image" in the
quotes table of your database.

Scott wrote:
> 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