I installed paperclip gem with these following lines in gem file
gem “paperclip”, “~> 2.0”
I am using amazon S3.
the problem came when I ran the migration which had the following
class AddImageColumnsToPicture < ActiveRecord::Migration
change_table :pictures do |t|
drop_attached_file :pictures, :image
It gave the following error:
An error has occurred, this and all later migrations canceled:
undefined method `has_attached_file’ for
Any one knows how to fix it?