# Re: attachment\_fu problem when using edge rails

**URL:** <https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292>\
**Category:** Rails\
**Created:** [May 3, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292 "2007-05-03T22:27:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [May 3, 2007, 10:27pm UTC](https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292/1 "2007-05-03T22:27:07Z")

</div>

Just a guess but do you need

:size =\> 1.byte…2.megabytes

or

:size =\> 1.megabyte…2.megabytes

----- Original Message ----  
From: adam [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Thursday, May 3, 2007 3:56:24 PM  
Subject: [Rails] attachment\_fu problem when using edge rails

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

–  
Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![mslagell](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e274bd/32.png) [@mslagell](https://www.ruby-forum.com/u/mslagell)\
**Post date:** [May 3, 2007, 11:35pm UTC](https://www.ruby-forum.com/t/re-attachment-fu-problem-when-using-edge-rails/103292/2 "2007-05-03T23:35:39Z")

</div>

nope, that doesnt seem to make any difference. along with min\_size and  
max\_size producing the same results.

Mark S. wrote:

> Just a guess but do you need
> 
> :size =\> 1.byte…2.megabytes
> 
> or
> 
> :size =\> 1.megabyte…2.megabytes
