Re: Image uploads and resizing for Rails models with mini-magick

I have followed the instructions for mini_magick...but if i add some different kind of image file,than old one.... then old one is not deleting.. pls help. its urgent ...:(

Last edited by santu_hvr (2008-10-22 01:19:21)

Re: Image uploads and resizing for Rails models with mini-magick

Hello. I'm trying to follow the tutorial, but have received this error:

undefined method `original_filename' for "watermelon.jpg":String

where should I be looking for the original_filename and content_type methods?

I know that they are supposed to be methods of the file, but I have set :multipart => true in the form_tag, so it should be running smoothly.

completely lost as to how to make this work.

thanks in advance.

andy

Last edited by ThePiedPipes (2008-11-06 17:58:37)

Re: Image uploads and resizing for Rails models with mini-magick

Hi, I figured that I wasn't constructing my form correctly with multipart=true so that fixed that...but now there's another issue: basically the original file is being uploaded to the public folder but no communication with the database has taken place.

there's a whole lotta 'nil' where my image_square etc fields are.

UPDATE: resolved - needed to reboot and redo my paths after installing ImageMagick. Sorted it.


andy

Last edited by ThePiedPipes (2008-11-06 18:59:51)