Displaying 3 results from an estimated 3 matches for "link_to_canvas".
2008 Mar 06
5
Setting :canvas => false for URL generation doesn''t always work?
...definitely taking it into account).
I''m wondering if someone can comment on this more? I have a fix, but I''m
not sure if it''s actually a fix, or just solving the symptom or improper use
on my part, etc. What I did to fix it was change
Facebooker''s UrlRewriter#link_to_canvas? (in facebook_url_rewriting.rb) to
look like this:
def link_to_canvas?(params, options)
option_override = options[:canvas]
if option_override == false # important to check for false. nil should
use default behavior
options[:only_path] = false
RAILS_DEFAULT_LOGGER.d...
2008 Jul 11
0
canvas url rewriting fails for templates loaded through ajax
.../facebooker/lib/facebooker/rails/facebook_url_rewriting.rb
index 00b1e1d..e81a316 100644
---
a/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb
+++
b/vendor/plugins/facebooker/lib/facebooker/rails/facebook_url_rewriting.rb
@@ -11,7 +11,7 @@ module ::ActionController
def link_to_canvas?(params, options)
option_override = options[:canvas]
return false if option_override == false # important to check for
false. nil should use default behavior
- option_override || @request.parameters["fb_sig_in_canvas"] == "1" ||
@request.parameters[:fb_sig_in_...
2007 Dec 20
0
Relative URL fix
...url = BASE_URL + url
end
end
url
end
Here is a slight change to the rewrite_url_with_facebooker method,
which deletes the :skip_relative_url_root key if it is true.
def rewrite_url_with_facebooker(*args)
options = args.first.is_a?(Hash) ? args.first : args.last
is_link_to_canvas=link_to_canvas?(@request.request_parameters,
options)
options[:skip_relative_url_root] ||= !is_link_to_canvas
options.delete(:skip_relative_url_root) if options
[:skip_relative_url_root] == true && !is_link_to_canvas
if is_link_to_canvas && !options.has_key?...