The blog of Rahoul Baruah from 3hv Ltd

What's going on?

My name is Rahoul Baruah (aka Baz) and I'm a software developer in Leeds (England).

This is a log of things I've discovered while writing software in Ruby on Rails. In other words, geek stuff.

However, I've decided to put this blog on ice - I would ask you to check out my business blog here (or subscribe here).

23 April, 2007

Markaby Gotcha

One thing to watch out for, when using Markaby:

link_to_remote 'whatever', :url => some_path(@something), :before => do_this, :complete => do_that

will not work.

Instead you need:

link_to_remote 'whatever', :url => some_path(@something).to_s, :before => do_this, :complete => do_that

Spot the difference? The :url parameter has a .to_s appended on the end. Otherwise Markaby intercepts the call and eats the output.

No comments:

eXTReMe Tracker