Rewind Ruby 1.9.1 (or “Put The Candle Back”)

I updated all the gems for my current Rails development project that is using Ruby 1.9.1. This also included an upgrade to Phusion Passenger 2.2.5. Then I upgraded to Ruby 1.9.1-p243, which promptly crashed Passenger when I did a session request through Authlogic 2.1.2. Ouch. So, I reinstalled Ruby 1.9.1-p129, and all is well again. Oddly enough, there is no uninstall switch in the Ruby-for-Linux tar ball Makefile. The default install location is /usr/local, so I can keep the Fedora 8 version of Ruby 1.8.6 (via the RPM package system) intact, but I wasn’t sure what would happen if I simply re-installed the older Ruby 1.9.1 version under /usr/local. As… Read More

Continue Reading

Sendmail Tweak

Although the Rails ActionMailer class is easy to test, I wanted to really use it in development mode to check all my settings in the config/email.yml file. The Fedora code base pretty much sets up sendmail out of the box, but with ISP’s possibly blocking port 25, and router configs, etc. etc, things can get confusing. The basic test from the Linux command line: put the mail in the mqueue directory, but it was going nowhere. Then I remembered the /etc/mail directory, specifically the access file: Since I set my router to act as a DHCP server, I had to add the IP assignment for the Fedora box: and then… Read More

Continue Reading

Compass, SASS, HAML

I’m working on a project that is using the latest Rails markup buzz, namely Compass, SASS and HAML, so it’s time to begin the learning process. Part of that effort will be to convert my personal Rails project over to Compass et. al. I found that the best approach seems to be to install all the required gems manually before doing anything else. That is: Installing HAML also installs SASS, which is pretty convenient. Then install the basic compass gem. Compass supports a few standard stylesheet frameworks: 960gs, blueprint and YUI. I’m using 960. For Rails integration, you can either build a new Rails project, or you can choose to… Read More

Continue Reading

Integrating OpenID with Authlogic

I won’t take any credit here. If you want to do this, jump right over to the Ryan Bates Railscast Number 170. He totally nails it – just follow along and adjust for the views you are actually using, and it’s operational in a jiffy. Sweet! The only thing that didn’t work for me was the install for the open_id_authentication plugin. I had to copy and install the files manually. I note that the install worked when I tried it again while writing this article, so maybe it was a temporary github problem. It’s a funny thing about OpenID, though. When I ask my technically competent acquaintances about it, the… Read More

Continue Reading

HAML and Apache Encodings

I’m playing around a bit with the HAML gem. It broke my Apache / Passenger server immediately. The original error message looked something like: /!\ FAILSAFE /!\ 2009-05-01 10:05:18 -1000 Status: 500 Internal Server Error invalid byte sequence in US-ASCII Google to the rescue. On Linux machines, you should have a /etc/sysconfig/httpd file. I added HTTPD_LANG=en_US.UTF-8 and all was well after restarting Apache. This took awhile to find, so here’s the URL to the Rack Development Google Group, of all places. There is some info on OSX as well. http://tinyurl.com/m8oxnz Google has added at least 10 points to my IQ. Make that 20 points.

Continue Reading