All posts tagged with 'Rails'

Different day, same shit: MySQL Gem again

11-Dec-08

Again, the MySQL ruby gem totally annyoed me trying to install it on a fresh Mac OS X 10.5.5 install and MySQL 5.0.67. This time the following command brought it to life: sudo env ARCHFLAGS="-arch i386" gem install mysql — \ –with-mysql-dir=/usr/local/mysql –with-mysql-lib=/usr/local/mysql/lib \ –with-mysql-include=/usr/local/mysql/includesudo env ARCHFLAGS="-arch i386" gem install mysql — \ –with-mysql-dir=/usr/local/mysql –with-mysql-lib=/usr/local/mysql/lib […]

Read the complete article »

Rails 2.1: send_file :x_sendfile => true

05-Jun-08

The “x_sendfile” argument on the send_file method in Rails 2.1 is not well thought off as it has an impact in development mode also. I guess most Rails coders won’t have Apache proxying their mongrels in dev mode and so they don’t get to see any images or files but the plain path information. I’ll […]

Read the complete article »

PDF::Writer and Ruby on Rails 2.1

04-Jun-08

Some days ago, Ruby On Rails 2.1 saw the light of day and as usual, i eagerly updated my Daily Fratze project. I had some minor problems due to an old version of will_paginate and some major ones with my use of PDF::Writer. The PDF::Writer library still works very well but the the instructions here […]

Read the complete article »

Turning off x_send_file in development mode

23-Jan-08

I just discovered the great x_send_file plugin and technique and use it extensivly for daily fratze. I replaced the majority of send_file calls with x_send_file but not all (the in memory thingies i serve cannot be send through apache). This works great in production mode but in development mode, it fails as there is no […]

Read the complete article »

Using rubyzip to create zip files on the fly

21-Jan-08

In my Daily Fratze project the users should be able to download their faces as a zip file backup. Until now they have been able to upload zip files. For that, i used rubyzip which worked quite well. As a starting point i found a nice article on the joy of rubyzip, but this has […]

Read the complete article »