I am using paperclip with S3 to save my users images in an amazon bucket. The working version used to save images in s3.amazonaws.com/my-bucket/users/photos/000/000/1/small/photo.jpg. When I created Male and Female models (subclasses of User)
it started to search images in s3.amazonaws.com/my-bucket/males/photos/000/000/1/small/photo.jpg (if the user is a male
).
Furthermore, when I try to create a new photo I got a nginx 500 Internal Server Error
and have no log in rails application.
How should I solve that?