I started developing facebook app within an existing app and I am
having some trouble with my links. I direct my canvas page
http://apps.facebook.com/karlbook/ to the
worth_causes_controller#index action:
I am having trouble understanding how to create links properly when
the canvas page does not map to the root route.
thx.
-karl
Mike Mangino
未讀,
2009年12月16日 上午11:40:372009/12/16
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:faceb...@googlegroups.com
Your callback url should go to the root of the rails app. We don't support pointing at only one controller. You can handle the root url using the :canvas routing conditional.
My problem is that in my existing rails project, the root url is pointing at
the default location for our website. For backwards compatibility reasons,
I cannot point our canvas page at the root url. Is the only option then to
start a brand new rails project when developing using facebooker?
Also, I am not quite sure how the :canvas option helps.
Thanks for help!
-karl
Mike Mangino
未讀,
2009年12月16日 上午11:55:442009/12/16
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:faceb...@googlegroups.com
On Dec 16, 2009, at 11:55 AM, Karl Baum wrote:
> My problem is that in my existing rails project, the root url is pointing at
> the default location for our website. For backwards compatibility reasons,
> I cannot point our canvas page at the root url. Is the only option then to
> start a brand new rails project when developing using facebooker?
Sure you can. You can have / point to different controllers depending upon whether the route is from a canvas url or not. It's an option in the :conditions part of routing. It's covered in my book.
Mike
Karl Baum
未讀,
2009年12月16日 中午12:05:522009/12/16
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:faceb...@googlegroups.com
Oh ok. I will take a look at the book. Thanks again!