We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want save an attachment in a path such as:
rails_root/parent/:id_parent/child/:id_child/:filename
class Parent include Mongoid::Document embeds_many :childrens , cascade_callbacks: true end class Child include Mongoid::Document include Mongoid::Paperclip embedded_in :parent, inverse_of: :childrens has_mongoid_attached_file :photo, path: "parent/:id_parent/child/:id/:filename" end
How can I use :id_parent? Because right now is undefined and it should have parent ids value.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want save an attachment in a path such as:
How can I use :id_parent? Because right now is undefined and it should have parent ids value.
The text was updated successfully, but these errors were encountered: