watch this  

the official mrchucho blog

Ruby On Rails

Posted 2005 Jan 23

An O’Reilly article about Rails, a web application framework for Ruby, has certainly piqued my interest. There were a couple of bumps in the road to getting setup, but now I’m totally enamored with Rails!

I used fink to install Ruby 1.8 (OS X comes with an older version). I already have MySQL (for WP - more on this later). Next, I downloaded and built gem manually (unfortunately, there is not yet a fink package for gem). I also found CocoaMySQL - a nice GUI front-end for MySQL. After that, I modified my httpd.conf and was up and running!

Until I tried to actually pull things from the databse… I kept getting:
Packets out of order: 1<>3: SELECT * FROM

Thankly, this issue had already been noted, has a ticket and solution/workaround. Because WordPress does not support the new MySQL 4.1 password hashing, my database password was encrypted with OLD_PASSWORD. So, I just created another user and encrypted the password with PASSWORD. Voila!

I’m still learning - this is my first foray into Ruby - but I’m very impressed! The O’Reilly article is helpful, but the Todo tutorial at Ruby on Rails is much more comprehensive. Also helpful is the API docs.

My only “issue” so far - and it may turn out to be unjustified - is the lack of XHTML templating functionality (ala HTML::Template, Mason or even Smarty).

This is very cool.

Responses to "Ruby On Rails"

No responses yet.

Comments are now closed.
atom rss