3hv

beautiful code for elegant web sites

  • You are here: 
  • Home
  • Markaby Gotcha

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.


Posted on April 23rd, 2007 | By: Rahoul Baruah | Filed under Designing Great Software, Ruby on Rails and Software Development


Leave a Reply

You must be logged in to post a comment.