ruby on rails - Refile accepts_attachments_for issue -


i'm using refile rails 4 app.

i'm getting error: undefined methodaccepts_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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -