Monthly Archives: January 2008

Rails 2.0 and link_to_remote :with

I’m moving an old app to Rails 2.0 and other than fixing some routes Ajax calls with link_to_remote and the :with parameter was the only thing that gave me some trouble. In the old version I was grabbing the current value of a drop down list with Prototype and passing it along using :with like [...]

Rails: cleaner partials in forms

Damian pointed me to the patch ELC Technologies committed to Rails.
As he mentions previously you did something like
<% form_for(@client) do |f| %>
<%= render :partial => ‘form’, :locals => {:f => f} %>
<%= submit_tag ‘Create’ %>
<% end %>
but now you can just do…
<% form_for(@client) do |f| %>
[...]

So I’d say Apple pretty much killed it today

And by ‘it’ I mean Blockbuster (and possibly Netflix but they’re a bit more agile). If weren’t one of the gazillion people hitting on the Engadget and Gizmodo live blogs Apple released a bunch of new shise today.
The MacBook Air will get most of the attention but I think Movie Rentals is a bigger deal [...]

Log into Facebook with Adobe AIR (without leaving the desktop)

Introducing ActionSnip

My new year’s resolution is to organize my ActionScript snippets, so I made a website to do just that actionsnip.com.
I know yes another snippet site, but none of the others highlight ActionScript properly. And because I don’t only collect snippets but blog posts about ActionScript as well there’s a feature called scraps which lets you [...]

Subversion with a custom port on OS X

Setting up subversion to checkout and over a custom port number is one of those tasks that I do once every six months, and immediately forget, then I waste time a’Googling to find it again.
Open up subversion’s config file
mate /Users/myuser/.subversion/config
Then find the section marked [tunnels], and add a line naming your custom port (replacing ‘1234′ [...]