# Attachment\_fu problem when using edge rails

**URL:** <https://www.ruby-forum.com/t/attachment-fu-problem-when-using-edge-rails/103291>\
**Category:** Rails\
**Created:** [May 3, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/attachment-fu-problem-when-using-edge-rails/103291 "2007-05-03T21:56:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 3, 2007, 9:56pm UTC](https://www.ruby-forum.com/t/attachment-fu-problem-when-using-edge-rails/103291/1 "2007-05-03T21:56:24Z")

</div>

Hi,

Has anyone any suggestions on whats going on here.

when ever I attempt to upload an image the following error message is  
returned  
“Size is not included in the list”

I have tried different settings in my model, but am not sure whats going  
wrong.

here is my photo model

class Photo \< ActiveRecord::Base

```
#plugins
has_attachment :content_type => :image,
                :storage => :file_system,
                :size => 1..2.megabyte,
                :resize_to => '250x350>',
                :thumbnails => { :thumb => '40x40!' }

validates_as_attachment

```

end
