Writing things down so I can remember them later

WaltCo Tech

« Use SWIG to Build a Ruby Extension to Wrap a Windows DLL

Working on the Edge can be frustrating and amazing at the same time

February 24th, 2008 by Walter Wilfinger
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit

I’m messing around with the edge of the Merb 0.9 developer release and Haml. I have very little experience in Haml and I’ve never used Merb before, so it’s probably a bad idea to start off with a developer release but hey whatever. I could not get the form_tag function from merb_helpers to work. This…

%p
  This will be the most basic DNS lookup ever

- form_tag(:action => url(:controller => :dns, :action => :index)) do
  = text_control "target", :label => "Domain/IP"

Gave me this…

undefined local variable or method `_buf' for # - (NameError)

I wasn’t sure if I was using Haml wrong, Merb wrong, or both. Google indexed an error log of the exact same problem and a few minutes later the bug entry which was entered just 45 minutes before I found it.

That’s just crazy cool.

Filed under Haml, Merb having
« Use SWIG to Build a Ruby Extension to Wrap a Windows DLL

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.