validates_attachment_presence + production

2 views
Skip to first unread message

lmjabreu

unread,
Nov 18, 2009, 10:21:20 AM11/18/09
to Paperclip Plugin
Hey there,

I'm having an issue with validates_attachment_presence when running in
production environment( mongrel + nginx ).

I found this thread on lighthouse but despite being indexed by google
I can't access it:

#156 validates_attachment_presence doesn't work in production mode
"It's strange that validates_attachment_presence works in develpment
mode. But it doesn't work in production mode. My model is : ..."
https://thoughtbot.lighthouseapp.com/projects/8794-paperclip/tickets/156

I tested my app locally running in production mode and it does
validate.

I couldn't find any issues on the github page, so.. any ideas? thanks!

Jared Fine

unread,
Nov 20, 2009, 11:23:34 AM11/20/09
to Paperclip Plugin
validates_attachment_presence doesn't seem to be working for me as
well. I need to do futher testing though to try to figure out whats
going wrong. For now I'm just using a little hacky validation,
validates_presence_of <attachment>_file_name

Jonathan Yurek

unread,
Nov 23, 2009, 10:09:12 AM11/23/09
to papercli...@googlegroups.com
FTR, this isn't *that( hacky. I'm actually in the process of
refactoring the validations and this is basically what I'm doing. A
presence validation is validating on attachment_file_name.
> --
> Individuals over processes. Interactions over tools.
>
> Agile Rails training from thoughtbot, the makers of Paperclip,
> Clearance, Shoulda, & Factory Girl:
> http://thoughtbot.com/services/training
>
> The Paperclip group:
> http://groups.google.com/group/paperclip-plugin
>
> To post to this group, send email to
> papercli...@googlegroups.com
>
> To unsubscribe from this group, send email to
> paperclip-plug...@googlegroups.com

--
Jonathan Yurek, Founder and CTO
thoughtbot, inc.
organic brains. digital solutions.

617.482.1300 x114
http://www.thoughtbot.com/

Reply all
Reply to author
Forward
0 new messages