Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method identifier with multiple files upload #2180

Closed
Jojoooo1 opened this issue May 18, 2017 · 2 comments
Closed

undefined method identifier with multiple files upload #2180

Jojoooo1 opened this issue May 18, 2017 · 2 comments

Comments

@Jojoooo1
Copy link

Jojoooo1 commented May 18, 2017

Hello,

I am currently trying to implemente multiple files upload following this tutorial http://bobintornado.github.io/rails/2015/12/29/Multiple-Images-Uploading-With-CarrierWave-and-PostgreSQL-Array.html . With single file upload it work properly, but when I am switching to multiple and setting mount_uploaderS, I always got this error message. I am using rails 5.0.0 and last version of carrierwave.

NoMethodError - undefined method identifier' for #<ActionDispatch::Http::UploadedFile:0x007f5f98015618>: () usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/carrierwave-07dc4d7bd780/lib/carrierwave/mounter.rb:25:in identifiers'
() usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/carrierwave-07dc4d7bd780/lib/carrierwave/mount.rb:334:in `write_images_identifier'

OR this one if trying to save my record when debugging using pry :

NoMethodError: undefined method identifier' for #<ActionDispatch::Http::UploadedFile:0x00557291690358> from /usr/local/opt/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bundler/gems/carrierwave-07dc4d7bd780/lib/carrierwave/mounter.rb:25:in map'

I would greetly appreciate your help.
Have a good day.

Jonathan

@aalvrz
Copy link

aalvrz commented Aug 19, 2017

I am also experiencing a similar issue.

No error, but when using something like:

- @attachments.each do |a|
     %li= a.identifier

Returns nil

@BrusGarka
Copy link

Duplicate of #1581

@mshibuya mshibuya closed this as completed May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants