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
Remove file doesn't work for has_one association (subforms) #2
Comments
change lib/form_ui.rb, line 15 to: |
Thanks jaycode, Can you fork and patch the project to request mnaglik pull? Thanks again |
I'll try, never used git before... |
just fork-ed it, hey it was easy! (I hope I did it right) |
Thanks again jaycode ;) |
I've integrated the code to the master branch. Thanks guys! |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi mnaglick,
I'm having a trouble with your plugin :)
I have a model with has_one association to a model which have paperclip (emulate paperclip_polymorphic plugin). Like that:
So, I created a image controller and a news controller. This works fine.
When I go to create a new news this show a subform with upload, but I needed to set multipart with true on news controller. This can be automatic? I think the file_column_bridge does this.
But the issue is into remove file. When I set to remove file this doesn't remove because name of hidden field name. See the log:
See the delete_data goes to record and not into image hash. See if you can fix this issue and make the automatic multipart for parent controller.
Thanks again mnaglik
The text was updated successfully, but these errors were encountered: