Archive for the ‘RubyOnRails’ Category

David Heinemeier Hansson at Startup School 08

Share and annotate your videos with Omnisio!

Pragmatic Programmers

I absolutely love the books from “The Pragmatic Programmers“. They are really well written and the cool thing is, you can get them as DRM free PDF. And the even cooler thing is, you buy and read them while there are being written! How great is that? Below is a screenshot of my Pragmatic Bookshelf [...]

Building the postgres gem for a 64bit PostgreSQL on Snow Leopard (10.6)

sudo env ARCHFLAGS=”-arch x86_64″ gem install postgres

Enable SSH Agent (Key) Forwarding on Snow Leopard

I’m using Git and Capistrano to deploy some ruby applications on multiple servers. My Git setup is done with gitosis which uses a key based authentication over ssh. The deployment script logs into the remote servers and checks out the current application version via Git. Now to have this working, one must forward the private [...]

Ruby/Rails and MySQL on Snow Leopard (10A380)

First get and install the 64bit MySQL version: http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.35-osx10.5-x86_64.dmg/from/pick#mirrors Then install the MySQL gem the following way: sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config

Rails Version

How do you find out on which version of Rails your code is running? script/console Loading development environment (Rails 2.3.2) >> Rails::VERSION::STRING => “2.3.2″ >> Rails::VERSION::MAJOR => 2 >> Rails::VERSION::MINOR => 3 >> Rails::VERSION::TINY => 2 >> Rails::VERSION.constants => ["TINY", "STRING", "MINOR", "MAJOR"] >>