Chris Barna
2007-Aug-11 18:00 UTC
RFacebook prepends :action and :id with canvas_url in url_for and link_to
I''m using the RFacebook for rails plugin and I have stumbled across an annoying problem when generating paths and links with url_for and link_to. It appears that when I, for example, call url_for :controller => "pages", :action => "new", the return will be /canvas_url/pages/ canvas_url/new. It happens similarly when :id is set, returning / canvas_url/pages/canvas_url/view/canvas_url/1. Does anybody know what''s wrong? Has anybody else experienced this problem? I tried looking in the source of the RFacebook gem and came up with nothing. Chris Barna --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Per.l.joergensen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-16 20:19 UTC
Re: RFacebook prepends :action and :id with canvas_url in url_for and link_to
See this http://facebook.jdg.net/forums/RFacebook-Help/topics/link-to-and-url-for-issues Regards Per Lentz Jørgensen On 11 Aug., 20:00, Chris Barna <ch...-ylVkUfAo4g/R7s880joybQ@public.gmane.org> wrote:> I''m using the RFacebook for rails plugin and I have stumbled across an > annoying problem when generating paths and links with url_for and > link_to. It appears that when I, for example, call url_for :controller > => "pages", :action => "new", the return will be /canvas_url/pages/ > canvas_url/new. It happens similarly when :id is set, returning / > canvas_url/pages/canvas_url/view/canvas_url/1. Does anybody know > what''s wrong? Has anybody else experienced this problem? I tried > looking in the source of the RFacebook gem and came up with nothing. > > Chris Barna--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---