From b3154b8592ded6d7e044960e34c3d002b61bfa3e Mon Sep 17 00:00:00 2001 From: Miles Gould Date: Mon, 8 Apr 2013 17:03:52 +0100 Subject: [PATCH] Fix stub authentications#create method As per comment at http://railscasts.com/episodes/235-omniauth-part-1?view=comments#comment_153390 --- app/controllers/authentications_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/authentications_controller.rb b/app/controllers/authentications_controller.rb index 13ac6bd3b..f48c4fc95 100644 --- a/app/controllers/authentications_controller.rb +++ b/app/controllers/authentications_controller.rb @@ -40,7 +40,8 @@ class AuthenticationsController < ApplicationController # POST /authentications # POST /authentications.json def create - render :text => request.env["omniauth.auth."].to_yaml + auth = request.env['omniauth.auth'] + render :text => auth.to_yaml end # PUT /authentications/1