Friday, December 14, 2007

Rails Multi-Model Forms

Here is an excellent plugin to do all the magic.

URLs With file_column

This patch modifies the Rails file_column plugin so that it may download a remote file via HTTP in addition to using uploaded data. Now you can specify a string with a full valid URL.

Run it against lib/file_column.rb

Enjoy! file_column patch.

Thursday, December 13, 2007

Rails 2.0 Screencast

He goes a bit fast:
http://www.akitaonrails.com/2007/12/10/the-first-rails-2-0-screencast-english

Direct links to the text versions:
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial
http://www.akitaonrails.com/2007/12/12/rolling-with-rails-2-0-the-first-full-tutorial-part-2

Getting Rails 2.0 Running

So, Rails 2.0 has finally been released. It was a bit of a pain getting all my Ruby Gems updated for some reason. Please keep in mind that the MySQL path is specific to OSX 10.5.

$ sudo gem update sources
$ sudo gem update --system

$ sudo gem uninstall mysql
$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
$ sudo gem update -- --with-mysql-dir=/usr/local/mysql
$ sudo gem install rails --include-dependencies

I know there is a bit of duplicated effort there, but I had issues with that MySQL gem.

Finally Rails 2.0 joy. Now to fiddle around with it before starting a new project...

Installing the MySQL Ruby Gem for Rails MySQL Support on OSX Leopard

Some special command line magic is required to install the MySQL Gem on OSX Leopard (10.5).

$ export ARCHFLAGS="-arch i386"
$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql


I got this information from http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting.

Wednesday, December 05, 2007

Netbeans 6 Final

Finally released! There's not many pieces of software I will actually use in beta, but. Wow. Amazing IDE here. I wish there had been nice open source IDE's like this back in the day.