Archive for June, 2009

rails on centos 5.3 notes

Posted in Uncategorized on June 29th, 2009 by paul – Be the first to comment

Getting mysql gem installed:

http://blog.charlesarmour.com/2009/06/24/centos-5-3-ror-install/

When trying to install rmagick I kept getting errors about not being able to find fonts such as arial, verdana etc. I removed the mention of microsft fonts in the file

/usr/lib/ImageMagick-6.2.8/config/type.xml

as per comment #2 on this page and rmagick installed ok
(albeit with a load of warnings, but it seems to be working)

rails flash only on next page

Posted in Uncategorized on June 15th, 2009 by paul – Comments Off

If you only want the flash message to be shown on the first request after it is written to, use

flash.now[:error] = “will only show up once”