# Attachment\_fu has\_attachment model logic reasoning?

**URL:** <https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180>\
**Category:** Rails\
**Created:** [March 6, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180 "2009-03-06T15:03:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 6, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180/1 "2009-03-06T15:03:28Z")

</div>

Both Attachment\_fu and Paperclip use something like ‘has\_attachment’ to  
work their magic on an existing model like a User in the context of a  
profile picture or something like that.

I find this idea pretty constricting, as it doesn’t allow for multiple  
profile pictures for example. Or at least I wouldnt know how to set this  
up with either of the 2 plugins.

I am currently building a very simple dropsite for pictures to share  
with other people. There is no User or something like that to attach a  
picture to. Right now I am just looking for a way to have records  
represent my photos. Maybe later ill couple them to users, albums, or  
something else arbitrary.

It seems that the plugins are set up way too complex for this simple  
task. Am I missing something from these plugins, or is it just easier to  
write something from scratch to accomplish this? Because I do like the  
thumbnailing of these plugins. I have no problem using RMagick  
(Something Paperclip is very proud of to do without?)

Thanks in advance for clearing up this misconception of the attachment  
business

---

<div class="post-metadata">

**Author:** ![chrisdwan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/7feea3/32.png) [@chrisdwan](https://www.ruby-forum.com/u/chrisdwan)\
**Post date:** [March 6, 2009, 9:51pm UTC](https://www.ruby-forum.com/t/attachment-fu-has-attachment-model-logic-reasoning/162180/2 "2009-03-06T21:51:55Z")

</div>

The idea in most of these is one DB record maps to one file. So a user  
model  
with multiple pictures would just have

has\_many :assets

and then Asset would have the has\_attachment statement.

–Matt J.

On Mar 6, 9:03 am, Chris D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
