Generating an X.509 Cert in Ruby

Ruby's openssl module has basically no documentation because all its methods are added on dynamically or something.

[more]

Rails Debug Bar

Saw a Django Debug Bar yesterday, decided I wanted to try to build one for Rails. Ridiculously incomplete right now, but it's not too hard to expand.

Rails Debug Bar

[more]

Special Development Mode Behavior in Rails

  def create
    if RAILS_ENV == 'development'
      session[:url] = params[:url]
      redirect_to homepage_path
      return
    end
    store = OpenID::Store::Filesystem.new(RAILS_ROOT + '/tmp')
    consumer = OpenID::Consumer.new(session, store)
    oid_req = consumer.begin params[:url]
    realm = request.protocol + request.host_with_port
    return_to = session_url
    redirect_to oid_req.redirect_url(realm, return_to)
  end

Twitter since 2008-09-12

Twitter since 2008-09-11