Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Including two image files in model causes error #8
I have a model with two calls to "has_mongoid_attached_file"
Whichever appears first (in the model) causes an error in the view:
ActionView::Template::Error (can't convert nil into Hash):
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
If you need a way to get around it, I made a model for each of the attachments and then added a relationship. Or you can have one attachments model and then build multiple instances from it. This is my current work-around, of course this doesn't particularly fix the issue :)