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/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
mark-h9LRGznmPqMAvxtiuMwx3w@public.gmane.org
2007-May-03 20:25 UTC
Re: attachment_fu problem when using edge rails
Just a guess but do you need
:size => 1.byte..2.megabytes
or
:size => 1.megabyte..2.megabytes
----- Original Message ----
From: adam <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
nope, that doesnt seem to make any difference. along with min_size and max_size producing the same results. Mark Studebaker wrote:> Just a guess but do you need > > :size => 1.byte..2.megabytes > > or > > :size => 1.megabyte..2.megabytes >-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---