In my project, I wished to use the link_unless_current helper function for customizing the appearance of my menu item
tags when they are selected. As Facebooker now stands, this helper fails to work properly because inside the call to
the +current_page?+ helper, Rails compares the generated url_string which with Facebooker is rewritten to include the
canvas path on a canvas page. to the request string which of course doesn't include the canvas path
I patched +facebook_url_rewriting.rb+ to override +current_page?+ with a single-line change to the source as found in
the original +current_page?+ stripping the Facebook canvas from the url_string before doing the comparison work.
This patch works for me. |