Skip to content

Tag Archives: Rails

Prototype Ajax success()

I ran across what I believe to be a bug in Prototype last week. It has to do with the Ajax.Request.success() method which indicates if a given ajax request was successful or not, based on the http status code. I’m currently developing against v1.5.1.1 and in that version of Prototype the success function looks like […]

Rails 1.1.5 on Debian

Apparently there is a giant security hole in Rails, which has been fixed. See here for further details on the issue. For me the usual ‘gem install rails’ didn’t work right away on Debian. I got an error that looked something like tbeck@whalespine:~$ sudo gem install rails Config file /home/tbeck/.gemrc does not exist Attempting local […]

lighttpd on Debian

There’s a slight issue with the init.d script for lighttpd on debian. If you try to reload or start the application, it doesn’t properly detach itself from the process. I discovered this when I stopped getting my web stats update email from logrotate. The reason was logrotate was never finishing because lighttpd was holding onto […]

Podcast Roundup

Ever since I got the shuffle I’ve been listening to a lot of podcasts. I monitor about 10 or so podcasts in iTunes for interesting episodes but there is a core group of casts that I always make a point to listen to. Here they are for your listening pleasure. Drunk and Retired – This […]

Capistrano and CVS

In the world of Rails, Capistrano is a great tool to automate deployments. I started using it several weeks ago and it makes rolling out new versions of your web app very easy. Installation was as easy as doing ‘gem install capistrano’ and then doing a ‘cap -A’ in my application directory. The only glitch […]

Lighttpd and Debian

Everyone knows that lighttpd is the popular choice for deploying

mkmf.rb on Debian

If you are having trouble installing ruby gems on Debian and getting errors complaining about missing the mkmf.rb file try doing an ‘apt-get install ruby1.8-dev’. That cleared the error up for me.

fcgi gem on Debian

If you are getting errors on Debian while trying to install the fcig ruby bindings, then I may have the solution for you (well it isn’t my solution, I got it from here). The error might look something like this: ERROR: While executing gem … (RuntimeError) ERROR: Failed to build gem native extension. Do the […]

Rails, MySQL and Debian

The latest database.yml (the db config file for rails) says to “Get the fast C bindings” for mysql by typing : > gem install mysql What they don’t tell you is that on debian, there is a good chance this will fail with a truckload of errors. I googled a bit and came up with […]

Ruby / Rails / MySQL

The last major step in setting up the new PB was to fix the version of ruby that comes with Tiger, install rails and install mysql. Apparently the version of ruby that Apple shipped with Tiger causes problems when you try to use C extensions. I’m not too sure of the details or how this […]