ruby on rails - Refile accepts_attachments_for issue -
i'm using refile rails 4 app.
i'm getting error: undefined method
accepts_attachments_for'`
i'm trying multiple image upload, , have 2 models: books , blobs.
my books.rb:
has_many :blobs, dependent: :destroy accepts_attachments_for :blobs
my blobs.rb:
belongs_to :book attachment :file
if check rake routes, shows refile mounted, issue?
the feature you're looking use discussed here: https://github.com/refile/refile/issues/6 , doesn't seem released yet. if want use it, you'll need use master branch. can try using master branch changing gemfile:
gem 'refile', require: "refile/rails", git: 'https://github.com/refile/refile.git', branch: 'master'
Comments
Post a Comment