Serving pdf files? posted by Bill Gathen @ Tue, 23 Feb 2010 16:02:41 +0000
When you give it an absolute url with canvas == false, it leaves the url alone, so I get my_app.heroku.com instead of apps.facebook.com/my_app, which is what I was getting with the relative url...
View ArticleServing pdf files? posted by Bill Gathen @ Tue, 23 Feb 2010 12:27:22 +0000
Success!Using the info from this post http://groups.google.com/group/facebooker/browse_thread/thread/abd2d0f91bfe8ac6I got the following working:<a href="<%= root_url(:canvas => false)...
View ArticleServing pdf files? posted by Bill Gathen @ Tue, 23 Feb 2010 12:07:52 +0000
Turning on quick transitions doesn’t change the behavior when I click the link. When I type the url directly into the location bar, I get the same error.I tried switching back to the simplest...
View ArticleServing pdf files? posted by Bill Gathen @ Thu, 18 Feb 2010 13:58:22 +0000
I tried with render :file => "#{RAILS_ROOT}/public/my_pdf_file.pdf" in the controller as well, but no dice.Docs say specifically that layout defaults to false with render :file, so that’s not the...
View ArticleServing pdf files? posted by Bill Gathen @ Wed, 17 Feb 2010 11:52:20 +0000
I get the same result with canvas false. Am I doing this correctly?Here’s the view code:<% link_to download_quizzes_path, :canvas => false do %> <%= image_tag "pdf.png", :size =>...
View ArticleServing pdf files? posted by Bill Gathen @ Sat, 13 Feb 2010 13:00:17 +0000
I want to let a user click a link and download a pdf file, but send_file as follows leaves a stream of garbage in the canvas because FB is trying to render it as fbml:send_file 'public/my_pdf.pdf',...
View ArticleThe Flash showing up erratically and one behind posted by Bill Gathen @ Fri,...
I switched to the active record-based session store and the problem resolved itself.Uncomment config.action_controller.session_store = :active_record_store from app/config/environment.rbrake...
View ArticleThe Flash showing up erratically and one behind posted by Bill Gathen @ Thu,...
I’ve got a quiz app where the update action redirects back to the edit action if not all questions are correct. If they are correct, it displays the update view. There are 2 failure states: Not all...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Wed, 13 Jan...
I’ve decided to punt. I cleared out rails all the way back to 2.2.2 and built the app from scratch again up through the invitations page.Works perfectly straight out of the box using fbml. I don’t even...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Sun, 10 Jan...
Making progress, I think…I built a scratch application (new app in FB, new app in rails) with just a script/generate scaffold Welcome.Commented out the Welcome.find in the controller, and added a...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Sat, 09 Jan...
As you pointed out in your mail, I did have the wrong callback url in the config file. I think that was from some of my experimenting. It was set to the tunnlr address originally. When I set it...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Wed, 06 Jan...
Apparently my last post never went out, so I’ll resend…I think the config is right, because when I add “notright” onto the end of the keys in my app, the errors change. With a bad secret, the logs only...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Tue, 05 Jan...
No errors in the logs. It looks like every time I hit the page, it runs the “make a new session and redirect” action: “Filter chain halted as [:ensure_authenticated_to_facebook]...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Thu, 31 Dec...
If I try and hit the app while logged-in as the developer, I get the “Errors while loading page” output.When I hit it as a test user, there is no content in the canvas div (viewed through Web Inspector...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Thu, 31 Dec...
After a walkthrough of ensure_authenticated_to_facebook with the debugger, create_facebook_session returns false every time, leaving session[:facebook_session] nil, triggering new session/redirect to...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Wed, 30 Dec...
OK, I’ll keep my app set to FBML. Cool.ensure_authenticated_to_facebook is the filter you instructed us to add on page 38. From looking at the source, my guess is that set_facebook_session fails each...
View ArticleInvitation form comes up blank (page 40) posted by Bill Gathen @ Wed, 30 Dec...
On page 40, I’ve dl’d the invitations page code snippet and added it as app/views/invitations/new.erb (I also created an empty new method in invitations_controller.rb), but when I hit the app with a...
View Articleiframe can't connect, but fbml works posted by Bill Gathen @ Tue, 29 Dec 2009...
I got tunnlr.com set up and it works fine with network_test. Thanks.I was confused by the term “connected directly to the internet”: since my dev machine can be hit using IP + port forwarding, I...
View Articleiframe can't connect, but fbml works posted by Bill Gathen @ Tue, 22 Dec 2009...
I am using the external IP for my router in the FB-side configuration: that’s the xx-xx-xxx-xxx stuff in the dump; obfuscated, obviously. :-)When I set FB to fbml network_test works fine, so I know FB...
View Articleiframe can't connect, but fbml works posted by Bill Gathen @ Tue, 22 Dec 2009...
When I set up the network_test application on my local machine and forward port 3000 to it on my router, I can hit the app from any computer on my LAN, but hitting the FB page does not connect (The...
View ArticleGetting auto-reload back on sinatra 0.9.2+ posted by Bill Gathen @ Fri, 04...
Auto-reload behavior disappeared from development mode in Sinatra 0.9.2. rtomayko has created a tool called shotgun (http://github.com/rtomayko/shotgun) that fires an instance of mongrel (thin,...
View Article