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

Reform + Paperclip + File Validators #15

Open
juanvarser opened this issue Jun 30, 2016 · 1 comment
Open

Reform + Paperclip + File Validators #15

juanvarser opened this issue Jun 30, 2016 · 1 comment

Comments

@juanvarser
Copy link

Hi!

I'm trying to validate a paperclip :image in a Form object but it throws the following error on create:
Paperclip::Errors::MissingRequiredValidatorError.

I've already include ActiveModel::Validations in my Form Object as well as Paperclip validators but. Is your gem working with Paperclip?
Thanks in advance!

@musaffa
Copy link
Owner

musaffa commented Jun 30, 2016

According to the Paperclip documentation:

By default, only <attachment>_file_name is required for Paperclip to operate.

So you may need to add that validator in the form object or model itself.

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

2 participants