RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: mindgam3
If you are using coffeescript then use:
$('#sign_in').click (e) -> e.preventDefault() FB.login ((response) -> window.location = '/auth/facebook/callback' if response.authResponse), scope: "email"
If you are using coffeescript then use: