Hi,
I am trying to use the Acts as Attachment plugin and running into the following error:
undefined method `acts_as_attachment' for Photo:Class
Here's the steps I took:
script/plugin source http://svn.techno-weenie.net/projects/plugins script/plugin install acts_as_attachment script/generate attachment_model photo rake rails:freeze:gems
Here's my photo.rb file:
class Photo < ActiveRecord::Base belongs_to :product acts_as_attachment :storage => :file_system, :max_size => 300.kilobytes, :content_type => :image validates_as_attachment end
Any ideas?
Thanks,
Scott