Quantcast
Channel: Pragmatic Forums | Posts by Bill Gathen
Viewing all articles
Browse latest Browse all 25

Invitation form comes up blank (page 40) posted by Bill Gathen @ Thu, 31 Dec 2009 23:10:15 +0000

$
0
0

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 in Safari).

I rebuilt the app as 2.3.2, exact same results.

Just to get on the same page, these are the exact steps I took building the application:

  • rails my_app
  • cd my_app
  • script/plugin install git://github.com/mmangino/facebooker.git
  • edit config/facebooker.yml
    • api_key
    • secret_key
    • canvas_page_name
    • callback_url
  • edit app/controllers/application_controller.rb
    • ensure_authenticated_to_facebook
  • edit config/environment.rb
    • (in initializer block) config.action_controller.allow_forgery_protection = false
  • script/generate controller invitations
  • edit routes.rb
    • map.resources :invitations
    • map.root :controller => ‘invitations’, :action => ‘new’
  • delete public/index.html
  • cut/paste fbml form from page 40 into app/views/invitations/new.fbml.erb

(In the 2.3.5 version, I put the fbml form into new.erb, but results are the same)


Viewing all articles
Browse latest Browse all 25

Trending Articles