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:
Post a Comment