<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <id>tag:www.aussiegeek.net,:/tags/rails</id>
  <link type="text/html" href="http://www.aussiegeek.net" rel="alternate"/>
  <link type="application/atom+xml" href="http://www.aussiegeek.net/tags/rails.xml" rel="self"/>
  <title>Aussiegeek.net: Posts tagged with rails</title>
  <updated>2008-03-18T08:17:00+10:00</updated>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/1</id>
    <published>2008-03-18T10:19:05+10:00</published>
    <updated>2008-03-18T10:19:05+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/1-Git-for-Rails" rel="alternate"/>
    <title>Git for Rails</title>
    <content type="html">Last night I ran a presentation on using Git, and very briefly how to start a rails project in git for the Brisbane Ruby &amp; Rails Brigade</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/3</id>
    <published>2008-03-23T01:10:41+10:00</published>
    <updated>2008-03-23T01:11:07+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/3-Snippets-for-Sass-Bundle" rel="alternate"/>
    <title>Snippets for Sass Bundle</title>
    <content type="html">I use Sass (&amp; Haml), where its an option for producing sites, as I like the 'cleanliness' of it. I have been missing being able to use the snippets of the TextMate CSS bundle, so I have ported them over to a Sass bundle, with the syntax from "http://sporkmonger.com/2007/12/24/sass-textmate-bundle":http://sporkmonger.com/2007/12/24/sass-textmate-bundle.
      
      I have published it at "http://github.com/aussiegeek/ruby-sass-tmbundle/tree/from-css-bundle":http://github.com/aussiegeek/ruby-sass-tmbundle/tree/from-css-bundle</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/4</id>
    <published>2008-04-22T10:46:48+10:00</published>
    <updated>2008-05-16T21:27:40+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/4-mod-rails" rel="alternate"/>
    <title>mod_rails</title>
    <content type="html">I've just migrated the server that runs my blog, and some internal apps to "mod_rails":http://www.modrails.org.
                        
      It is extremely simple to deploy compared to apache+mongrel like I was using previously, and more memory effecient for the seldom used apps I keep on this server.
                        
      I was warned of some potential gotchas in regards to rewrite rules, but no issues here, altough I am only using rewrites to redirect feed requests to FeedBurner.
                        
      My config for this virtual host in all its gory detail:
                        
      &lt;pre&gt;
      &lt;VirtualHost *&gt;
      ServerName aussiegeek.net
      DocumentRoot /srv/www/alanblog/current/public
                        
      RewriteEngine On
                        
      RewriteCond %{HTTP_USER_AGENT} !FeedBurner
                        
      RewriteRule ^/posts\.xml$ http://feeds.feedburner.com/alanharper [R=301,L]
      &lt;/VirtualHost&gt;
      &lt;/pre&gt;
      Yes, thats all. Good work guys!
                        </content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/7</id>
    <published>2008-05-14T09:00:36+10:00</published>
    <updated>2008-05-14T13:15:17+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/7-Haml-Sass-talk-at-Brisbane-rb" rel="alternate"/>
    <title>Haml/Sass talk at Brisbane.rb</title>
    <content type="html">I'll be giving an intro to Haml &amp; Sass at the Brisbane Ruby &amp; Rails Brigage on monday night, if anybody is interested</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/9</id>
    <published>2008-06-17T14:25:27+10:00</published>
    <updated>2008-06-17T14:25:54+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/9-Rails-2-1-migration" rel="alternate"/>
    <title>Rails 2.1 migration</title>
    <content type="html">I've hacked together a simple script for converting timezones from the local timezone to utc for Rails 2.1

&lt;pre&gt;
#!env ruby
class DummyTable
  def initialize(tablename)
    @@tablename=tablename
  end
  def self.method_missing(m, *args); end
  
  def self.datetime(name,options={})
    puts "execute \"UPDATE #{@@tablename} SET #{name}=CONVERT_TZ(#{name},'SYSTEM','+00:00');\""
  end
end

def create_table(tablename,options,*block)
  dummy_table=DummyTable.new(tablename)
  yield DummyTable
end

def add_index(name,fields,options={}); end

class ActiveRecord;end

class ActiveRecord::Schema
  def self.define(options={}, *block)
    yield
  end
end

require 'db/schema.rb'
&lt;/pre&gt;

Drop this file in the root of your project and just run it with plain Ruby. I wrote it this way so I could avoid ActiveRecord, it will spit out a bunch of execute commands ready for plugging in to a migration</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/10</id>
    <published>2008-06-20T08:44:34+10:00</published>
    <updated>2008-06-20T08:44:51+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/10-Passenger-support-for-Vlad" rel="alternate"/>
    <title>Passenger support for Vlad</title>
    <content type="html">I've written a tiny module for Vlad to deploy to Passenger (mod_rails). It's available from "http://github.com/aussiegeek/vlad":http://github.com/aussiegeek/vlad

To use it, just update your Rakefile where Vlad.load is called, and update it like so:

&lt;code&gt;
Vlad.load :app =&gt; 'phusion'
&lt;/code&gt;</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/15</id>
    <published>2008-09-17T07:58:01+10:00</published>
    <updated>2008-09-17T07:58:01+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/15-Error-Handling" rel="alternate"/>
    <title>Error Handling</title>
    <content type="html">Lately, I have been trialing replacements for the ExceptionNotifier plugins, as getting spammed to death when something breaks is just not fun at all!

First of all at work, I have been running using "Hoptoad":http://www.hoptoadapp.com, from "Thoughtbot":http://www.thoughtbot.com, which has been running fine</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
  <entry>
    <id>tag:www.aussiegeek.net,:Post/16</id>
    <published>2008-11-08T18:06:44+10:00</published>
    <updated>2008-11-08T18:06:44+10:00</updated>
    <link type="text/html" href="http://www.aussiegeek.net/posts/16-Job-Upgrade" rel="alternate"/>
    <title>Job Upgrade</title>
    <content type="html">3 months since my last post. That goes quick.

Off to railscamp in Adelaide next weekend, looking forward to hanging out with some geeks and producing awesome, then when I get back I start my new position, Rails again on the Gold Coast, and we'll be getting started with all the Agile goodness. Can't Wait!</content>
    <author>
      <name>alan harper</name>
      <email>alan@aussiegeek.net</email>
    </author>
  </entry>
</feed>
