Ruby Forum Rails-ES > attachtment_fu y content_type

Posted by Andrés gutiérrez (Guest)
on 29.04.2008 20:09
(Received via mailing list)
Hola estoy intentando subir una foto con attachtment_fu, pero no me 
deja, me
dice:

:::::: Content type is not included in the list :::::

este es mi #photo.rb
class Photo < ActiveRecord::Base
belongs_to :user
  has_attachment :content_type => :image,
                 :processor => :Rmagick,
                 :storage => :file_system,
                 :max_size => 1000.kilobytes,
                 :resize_to => '320x200>',
                 :path_prefix => 'public/photos',
                 :thumbnails => { :thumb => '100x100>' }

  validates_as_attachment
end

Como veis tengo :content_type => :image
Lo que estoy intentando subir es un foto.jpg

Si le quito a photo.rb ::::::> :content_type => :image.
Si que subo la imagen a :
http://localhost:3000/photos/0000/0001/foto.jpg?1209492096

Es normal que me genere la carpeta 0000 y la 0001. y lo que no me genera 
es
la miniatura.

MI PROBLEMA:
No se porque me dice:
:::::: Content type is not included in the list :::::