My name is Ayres Narita, I'm a web developer & designer for as-ter-isk... Here you can find some of my ideas, thoughts and even send me a note...

You have selected the tag: Ruby on Rails

Click here to reset your selection and go back to the home page

Internet Explorer error validating file type, when uploading images using paperclip ( IE7, IE6 mine-type )

12 March, 2009

I assume that everybody already knows about “Paperclip” and also the “validates_attachment_content_type” method to validate the file type against the mine-type sent by the browser.

The problem starts when your customer calls you saying that he/she is not able to upload his images, and an error “Image is not one of the allowed file types” pops every time he/she tries.

Be the first to comment on this article, click here to read more...

Problem sending emails with the latest Rails at SliceHost and DreamHost

2 March, 2009

After upgrading my base application to Rails 2.2.2 I have notice 2 little things blocking me from sending emails while in production environment.

1 comment, click here to read more...

Paperclip on Mac OSX Leopard development environment fails silently when processing images

5 February, 2009

I had a very intriguing error using Paperclip on my development environment.

In my case I had, Mac OSX Leopard, Passenger and ImageMagick installed using MacPorts.

Every time I asked ImageMagick to crop my images on my model, Paperclip would only save the original version of the image and fail to save the cropped copy.

The intriguing part was that examining the logs, nothing related to the error could be found.

1 comment, click here to read more...

String manipulation with Ruby on Rails

15 January, 2009

I made a little list of the methods that I use the most, to serve as a quick guide to string manipulation for RoR.

I hope it can help you too…

1 comment, click here to read more...